Browse Source

Merge pull request #4297 from shin-/4271-fix-schemas

Fix config schemas (misplaced "additionalProperties")
Joffrey F 9 years ago
parent
commit
3bb8a7d178

+ 3 - 3
compose/config/config_schema_v2.0.json

@@ -276,9 +276,9 @@
           "type": ["boolean", "object"],
           "properties": {
             "name": {"type": "string"}
-          }
-        },
-        "additionalProperties": false
+          },
+          "additionalProperties": false
+        }
       },
       "additionalProperties": false
     },

+ 3 - 3
compose/config/config_schema_v2.1.json

@@ -322,10 +322,10 @@
           "type": ["boolean", "object"],
           "properties": {
             "name": {"type": "string"}
-          }
+          },
+          "additionalProperties": false
         },
-        "labels": {"$ref": "#/definitions/list_or_dict"},
-        "additionalProperties": false
+        "labels": {"$ref": "#/definitions/list_or_dict"}
       },
       "additionalProperties": false
     },

+ 2 - 1
compose/config/config_schema_v3.0.json

@@ -328,7 +328,8 @@
           "type": ["boolean", "object"],
           "properties": {
             "name": {"type": "string"}
-          }
+          },
+          "additionalProperties": false
         }
       },
       "labels": {"$ref": "#/definitions/list_or_dict"},