From 72c4589c33abcb270ec7e94fbdb7135a804d2ee0 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 29 Jan 2020 21:21:15 +0100 Subject: [PATCH] api/users: mark tokens and groups as optional in return schema Signed-off-by: Thomas Lamprecht --- PVE/API2/User.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/API2/User.pm b/PVE/API2/User.pm index 37bc6c0..311f913 100644 --- a/PVE/API2/User.pm +++ b/PVE/API2/User.pm @@ -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', }, },