fix 1014 allow k8snet with null value 73/8573/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 7 Feb 2020 10:18:30 +0000 (10:18 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 7 Feb 2020 14:46:05 +0000 (14:46 +0000)
Change-Id: I1c9922fd63a495422eb7029af04d7ea60b35c678
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
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",
-    "patternProperties": {".": {"oneOf": [description_schema, null_schema]}},
+    "patternProperties": {".": {"oneOf": [name_schema, null_schema]}},
     "minProperties": 1,
     "additionalProperties": False
 }