[pve-devel] [PATCH common] schema: error on missing keys without default keys

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Feb 15 15:35:35 CET 2016


---
 src/PVE/JSONSchema.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index 9552925..8ab59c6 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";
 	}
-- 
2.1.4





More information about the pve-devel mailing list