Username schema: set min_length to 1
Just to get a better error message (the regex already requires min_length 1) Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
1c8efc0062
commit
4042eedf18
@ -101,6 +101,7 @@ pub const PROXMOX_AUTH_REALM_SCHEMA: Schema = PROXMOX_AUTH_REALM_STRING_SCHEMA.s
|
||||
#[api(
|
||||
type: String,
|
||||
format: &PROXMOX_USER_NAME_FORMAT,
|
||||
min_length: 1,
|
||||
)]
|
||||
/// The user name part of a user id.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user