|
@@ -83,7 +83,7 @@
|
|
|
"context": {"type": "string"},
|
|
|
"dockerfile": {"type": "string"},
|
|
|
"args": {"$ref": "#/definitions/list_or_dict"},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"},
|
|
|
+ "labels": {"$ref": "#/definitions/labels"},
|
|
|
"cache_from": {"$ref": "#/definitions/list_of_strings"},
|
|
|
"network": {"type": "string"},
|
|
|
"target": {"type": "string"},
|
|
@@ -154,7 +154,7 @@
|
|
|
"hostname": {"type": "string"},
|
|
|
"image": {"type": "string"},
|
|
|
"ipc": {"type": "string"},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"},
|
|
|
+ "labels": {"$ref": "#/definitions/labels"},
|
|
|
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
|
|
|
|
"logging": {
|
|
@@ -334,7 +334,7 @@
|
|
|
"mode": {"type": "string"},
|
|
|
"endpoint_mode": {"type": "string"},
|
|
|
"replicas": {"type": "integer"},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"},
|
|
|
+ "labels": {"$ref": "#/definitions/labels"},
|
|
|
"update_config": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
@@ -435,7 +435,7 @@
|
|
|
},
|
|
|
"internal": {"type": "boolean"},
|
|
|
"attachable": {"type": "boolean"},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"}
|
|
|
+ "labels": {"$ref": "#/definitions/labels"}
|
|
|
},
|
|
|
"additionalProperties": false
|
|
|
},
|
|
@@ -459,7 +459,7 @@
|
|
|
},
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"}
|
|
|
+ "labels": {"$ref": "#/definitions/labels"}
|
|
|
},
|
|
|
"additionalProperties": false
|
|
|
},
|
|
@@ -475,7 +475,7 @@
|
|
|
"name": {"type": "string"}
|
|
|
}
|
|
|
},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"}
|
|
|
+ "labels": {"$ref": "#/definitions/labels"}
|
|
|
},
|
|
|
"additionalProperties": false
|
|
|
},
|
|
@@ -491,7 +491,7 @@
|
|
|
"name": {"type": "string"}
|
|
|
}
|
|
|
},
|
|
|
- "labels": {"$ref": "#/definitions/list_or_dict"}
|
|
|
+ "labels": {"$ref": "#/definitions/labels"}
|
|
|
},
|
|
|
"additionalProperties": false
|
|
|
},
|
|
@@ -524,6 +524,21 @@
|
|
|
]
|
|
|
},
|
|
|
|
|
|
+ "labels": {
|
|
|
+ "oneOf": [
|
|
|
+ {
|
|
|
+ "type": "object",
|
|
|
+ "patternProperties": {
|
|
|
+ ".+": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ {"type": "array", "items": {"type": "string"}, "uniqueItems": true}
|
|
|
+ ]
|
|
|
+ },
|
|
|
+
|
|
|
"constraints": {
|
|
|
"service": {
|
|
|
"id": "#/definitions/constraints/service",
|