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'), 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',
}, },
}, },