fix 1014 allow k8snet with null value
[osm/NBI.git] / osm_nbi / validation.py
index 69c42ae..ac0dcd9 100644 (file)
@@ -552,7 +552,7 @@ k8scluster_nets_schema = {
     "title": "k8scluster nets input schema",
     "$schema": "http://json-schema.org/draft-04/schema#",
     "type": "object",
     "title": "k8scluster nets input schema",
     "$schema": "http://json-schema.org/draft-04/schema#",
     "type": "object",
-    "patternProperties": {".": {"oneOf": [description_schema, null_schema]}},
+    "patternProperties": {".": {"oneOf": [name_schema, null_schema]}},
     "minProperties": 1,
     "additionalProperties": False
 }
     "minProperties": 1,
     "additionalProperties": False
 }