From: Wolfgang Bumiller Date: Mon, 15 Feb 2016 14:35:35 +0000 (+0100) Subject: schema: error on missing keys without default keys X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=f0ba41a13592bdca08de71814a757ee59162eb83 schema: error on missing keys without default keys --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 15e2c3c..0603f76 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -525,6 +525,7 @@ sub parse_property_string { die "duplicate key in comma-separated list property: $default_key\n"; } } + die "value without key, but schema does not define a default key\n" if !$default_key; } else { die "missing key in comma-separated list property\n"; }