Skip to content

Commit 40867a7

Browse files
AnaMManolachendeloof
authored andcommitted
Fix uniqueItems property defined on object
Signed-off-by: Ana-Maria (A.) Manolache <[email protected]>
1 parent bfe7111 commit 40867a7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

schema/compose-spec.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,9 +929,17 @@
929929
"type": "object",
930930
"patternProperties": {
931931
".+": {
932-
"type": ["string", "array"]
933-
},
934-
"uniqueItems": false
932+
"oneOf": [
933+
{
934+
"type": "string"
935+
},
936+
{
937+
"type": "array",
938+
"items": {},
939+
"uniqueItems": false
940+
}
941+
]
942+
}
935943
},
936944
"additionalProperties": false
937945
},

0 commit comments

Comments
 (0)