From 60514c1adbeee1ce829f7394a0c6ee2176ac9405 Mon Sep 17 00:00:00 2001 From: aiordache Date: Wed, 16 Sep 2020 14:06:16 +0200 Subject: [PATCH] Allow strings for cpus fields Signed-off-by: aiordache --- compose/config/config_schema_compose_spec.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose/config/config_schema_compose_spec.json b/compose/config/config_schema_compose_spec.json index 8af7faa63..43d3a3edf 100644 --- a/compose/config/config_schema_compose_spec.json +++ b/compose/config/config_schema_compose_spec.json @@ -153,7 +153,7 @@ "cpu_period": {"type": ["number", "string"]}, "cpu_rt_period": {"type": ["number", "string"]}, "cpu_rt_runtime": {"type": ["number", "string"]}, - "cpus": {"type": "number", "minimum": 0}, + "cpus": {"type": ["number", "string"]}, "cpuset": {"type": "string"}, "credential_spec": { "type": "object", @@ -503,7 +503,7 @@ "limits": { "type": "object", "properties": { - "cpus": {"type": "number", "minimum": 0}, + "cpus": {"type": ["number", "string"]}, "memory": {"type": "string"} }, "additionalProperties": false, @@ -512,7 +512,7 @@ "reservations": { "type": "object", "properties": { - "cpus": {"type": "number", "minimum": 0}, + "cpus": {"type": ["number", "string"]}, "memory": {"type": "string"}, "generic_resources": {"$ref": "#/definitions/generic_resources"} },