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:
Thomas Lamprecht 2020-01-29 21:21:15 +01:00
parent 3a4ed52781
commit 72c4589c33

View File

@ -294,12 +294,14 @@ __PACKAGE__->register_method ({
keys => get_standard_option('user-keys'),
groups => {
type => 'array',
optional => 1,
items => {
type => 'string',
format => 'pve-groupid',
},
},
tokens => {
optional => 1,
type => 'object',
},
},