فهرست منبع

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

Fix config schemas (misplaced "additionalProperties")
Joffrey F 9 سال پیش
والد
کامیت
3bb8a7d178
3فایلهای تغییر یافته به همراه8 افزوده شده و 7 حذف شده
  1. 3 3
      compose/config/config_schema_v2.0.json
  2. 3 3
      compose/config/config_schema_v2.1.json
  3. 2 1
      compose/config/config_schema_v3.0.json

+ 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"},