X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FJSONSchema.pm;h=a9a5400593c0954c2a3cc62ff76d8914744e1ed5;hp=e83d8dea42a3797bc610530bea86f3aca6a6f5ea;hb=35e7d2398393ba7b60db3c168e78c29110c36d5f;hpb=dca615d2e8dfddf99fc946a81079430e3344fe50 diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index e83d8de..a9a5400 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -582,9 +582,9 @@ sub print_property_string { } foreach my $key (sort keys %$data) { - die "invalid key: $key" if !$allowed{$key}; delete $required{$key}; next if $skipped{$key}; + die "invalid key: $key" if !$allowed{$key}; my $typeformat = $format->{$key}->{format}; my $value = $data->{$key};