浏览代码

Refactor ports section of fields schema

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad 10 年之前
父节点
当前提交
d52508e2b1
共有 1 个文件被更改,包括 2 次插入10 次删除
  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
         },