mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-15 22:59:51 +00:00
api/users: mark tokens and groups as optional in return schema
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3a4ed52781
commit
72c4589c33
@ -294,12 +294,14 @@ __PACKAGE__->register_method ({
|
|||||||
keys => get_standard_option('user-keys'),
|
keys => get_standard_option('user-keys'),
|
||||||
groups => {
|
groups => {
|
||||||
type => 'array',
|
type => 'array',
|
||||||
|
optional => 1,
|
||||||
items => {
|
items => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
format => 'pve-groupid',
|
format => 'pve-groupid',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tokens => {
|
tokens => {
|
||||||
|
optional => 1,
|
||||||
type => 'object',
|
type => 'object',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user