mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-09 10:34:13 +00:00
pbs-api-types: add REGENERATE_TOKEN_SCHEMA
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
This commit is contained in:
parent
1fc5630c71
commit
6dd53a89b5
@ -18,6 +18,12 @@ pub const EXPIRE_USER_SCHEMA: Schema = IntegerSchema::new(
|
||||
.minimum(0)
|
||||
.schema();
|
||||
|
||||
pub const REGENERATE_TOKEN_SCHEMA: Schema = BooleanSchema::new(
|
||||
"Regenerate token secret while keeping permissions.",
|
||||
)
|
||||
.default(false)
|
||||
.schema();
|
||||
|
||||
pub const FIRST_NAME_SCHEMA: Schema = StringSchema::new("First name.")
|
||||
.format(&SINGLE_LINE_COMMENT_FORMAT)
|
||||
.min_length(2)
|
||||
|
Loading…
Reference in New Issue
Block a user