mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Update schemas to prevent invalid properties in deploy.resources
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
f2aebf8004
commit
7611492f9c
@ -240,7 +240,8 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"limits": {"$ref": "#/definitions/resource"},
|
"limits": {"$ref": "#/definitions/resource"},
|
||||||
"reservations": {"$ref": "#/definitions/resource"}
|
"reservations": {"$ref": "#/definitions/resource"}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"restart_policy": {
|
"restart_policy": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -269,7 +269,8 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"limits": {"$ref": "#/definitions/resource"},
|
"limits": {"$ref": "#/definitions/resource"},
|
||||||
"reservations": {"$ref": "#/definitions/resource"}
|
"reservations": {"$ref": "#/definitions/resource"}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"restart_policy": {
|
"restart_policy": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -313,7 +313,8 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"limits": {"$ref": "#/definitions/resource"},
|
"limits": {"$ref": "#/definitions/resource"},
|
||||||
"reservations": {"$ref": "#/definitions/resource"}
|
"reservations": {"$ref": "#/definitions/resource"}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"restart_policy": {
|
"restart_policy": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -348,7 +348,8 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"limits": {"$ref": "#/definitions/resource"},
|
"limits": {"$ref": "#/definitions/resource"},
|
||||||
"reservations": {"$ref": "#/definitions/resource"}
|
"reservations": {"$ref": "#/definitions/resource"}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"restart_policy": {
|
"restart_policy": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -84,7 +84,9 @@
|
|||||||
"dockerfile": {"type": "string"},
|
"dockerfile": {"type": "string"},
|
||||||
"args": {"$ref": "#/definitions/list_or_dict"},
|
"args": {"$ref": "#/definitions/list_or_dict"},
|
||||||
"labels": {"$ref": "#/definitions/list_or_dict"},
|
"labels": {"$ref": "#/definitions/list_or_dict"},
|
||||||
"cache_from": {"$ref": "#/definitions/list_of_strings"}
|
"cache_from": {"$ref": "#/definitions/list_of_strings"},
|
||||||
|
"network": {"type": "string"},
|
||||||
|
"target": {"type": "string"}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
@ -351,7 +353,8 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"limits": {"$ref": "#/definitions/resource"},
|
"limits": {"$ref": "#/definitions/resource"},
|
||||||
"reservations": {"$ref": "#/definitions/resource"}
|
"reservations": {"$ref": "#/definitions/resource"}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"restart_policy": {
|
"restart_policy": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user