From 4042eedf188437ce1f0a45baf342a3d0c9acd4bb Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 7 Mar 2022 13:45:16 +0100 Subject: [PATCH] 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 --- pbs-api-types/src/userid.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pbs-api-types/src/userid.rs b/pbs-api-types/src/userid.rs index 7ee64fb0..12843c3d 100644 --- a/pbs-api-types/src/userid.rs +++ b/pbs-api-types/src/userid.rs @@ -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. ///