From 0d9238f31eb4bf621545931076f70494cf22725a Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 5 Jan 2023 12:31:50 +0100 Subject: [PATCH] sync compose-spec Signed-off-by: Nicolas De Loof --- Makefile | 4 ++++ schema/compose-spec.json | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e25e8f44..1a66ee2c 100644 --- a/Makefile +++ b/Makefile @@ -42,3 +42,7 @@ check-license: build-validate-image setup: ## Setup the precommit hook @which pre-commit > /dev/null 2>&1 || (echo "pre-commit not installed see README." && false) @pre-commit install + +.PHONY: sync +sync: + curl -fSL https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json -o schema/compose-spec.json \ No newline at end of file diff --git a/schema/compose-spec.json b/schema/compose-spec.json index b7b90c3d..6f827971 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -141,6 +141,7 @@ }, "cap_add": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, "cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}, + "cgroup": {"type": "string", "enum": ["host", "private"]}, "cgroup_parent": {"type": "string"}, "command": { "oneOf": [ @@ -581,12 +582,12 @@ "items": { "type": "object", "properties": { - "capabilities": {"$ref": "#/definitions/list_of_strings"}, - "count": {"type": ["string", "integer"]}, - "device_ids": {"$ref": "#/definitions/list_of_strings"}, - "driver":{"type": "string"}, - "options":{"$ref": "#/definitions/list_or_dict"} - }, + "capabilities": {"$ref": "#/definitions/list_of_strings"}, + "count": {"type": ["string", "integer"]}, + "device_ids": {"$ref": "#/definitions/list_of_strings"}, + "driver":{"type": "string"}, + "options":{"$ref": "#/definitions/list_or_dict"} + }, "additionalProperties": false, "patternProperties": {"^x-": {}} }