diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 2a349c8c..2a1d4d79 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -6006,8 +6006,12 @@ __PACKAGE__->register_method({ } elsif (my $handler = $cmd_handlers->{$cmd}) { print "received command '$cmd'\n"; eval { - if ($cmd_desc->{$cmd}) { - PVE::JSONSchema::validate($parsed, $cmd_desc->{$cmd}); + if (my $props = $cmd_desc->{$cmd}) { + my $schema = { + type => 'object', + properties => $props, + }; + PVE::JSONSchema::validate($parsed, $schema); } else { $parsed = {}; }