diff --git a/schema/compose-spec.json b/schema/compose-spec.json index a0310c59..153c70e7 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -929,9 +929,17 @@ "type": "object", "patternProperties": { ".+": { - "type": ["string", "array"] - }, - "uniqueItems": false + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": {}, + "uniqueItems": false + } + ] + } }, "additionalProperties": false },