Browse Source

Order properties alphabetically

Improves readability.

Signed-off-by: Mazz Mosley <[email protected]>
Mazz Mosley 10 years ago
parent
commit
98c7a7da61
1 changed files with 17 additions and 14 deletions
  1. 17 14
      compose/schema.json

+ 17 - 14
compose/schema.json

@@ -14,28 +14,15 @@
       "type": "object",
 
       "properties": {
-        "ports": {
-          "oneOf": [
-            {"type": "string", "format": "ports"},
-            {
-              "type": "array",
-              "items": {"type": "string"},
-              "uniqueItems": true,
-              "format": "ports"
-            }
-          ]
-        },
         "build": {"type": "string"},
         "env_file": {"$ref": "#/definitions/string_or_list"},
+
         "environment": {
           "oneOf": [
             {"type": "object"},
             {"type": "array", "items": {"type": "string"}, "uniqueItems": true}
           ]
         },
-        "image": {"type": "string"},
-        "mem_limit": {"type": "number"},
-        "memswap_limit": {"type": "number"},
 
         "extends": {
           "type": "object",
@@ -46,6 +33,22 @@
           },
           "required": ["service"],
           "additionalProperties": false
+        },
+
+        "image": {"type": "string"},
+        "mem_limit": {"type": "number"},
+        "memswap_limit": {"type": "number"},
+
+        "ports": {
+          "oneOf": [
+            {"type": "string", "format": "ports"},
+            {
+              "type": "array",
+              "items": {"type": "string"},
+              "uniqueItems": true,
+              "format": "ports"
+            }
+          ]
         }
 
       },