Sfoglia il codice sorgente

Refactor ports section of fields schema

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad 10 anni fa
parent
commit
d52508e2b1
1 ha cambiato i file con 2 aggiunte e 10 eliminazioni
  1. 2 10
      compose/config/fields_schema.json

+ 2 - 10
compose/config/fields_schema.json

@@ -83,16 +83,8 @@
         "ports": {
           "type": "array",
           "items": {
-            "oneOf": [
-              {
-                "type": "string",
-                "format": "ports"
-              },
-              {
-                "type": "number",
-                "format": "ports"
-              }
-            ]
+            "type": ["string", "number"],
+            "format": "ports"
           },
           "uniqueItems": true
         },