Skip to content

Commit fd4a1fe

Browse files
robmrygithub-actions[bot]
authored andcommitted
Update compose-spec.json
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1baa598 commit fd4a1fe

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

schema/compose-spec.json

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -657,19 +657,23 @@
657657

658658
"gpus": {
659659
"id": "#/definitions/gpus",
660-
"type": "array",
661-
"items": {
662-
"type": "object",
663-
"properties": {
664-
"capabilities": {"$ref": "#/definitions/list_of_strings"},
665-
"count": {"type": ["string", "integer"]},
666-
"device_ids": {"$ref": "#/definitions/list_of_strings"},
667-
"driver":{"type": "string"},
668-
"options":{"$ref": "#/definitions/list_or_dict"}
669-
},
670-
"additionalProperties": false,
671-
"patternProperties": {"^x-": {}}
672-
}
660+
"oneOf": [
661+
{"type": "string", "enum": ["all"]},
662+
{"type": "array",
663+
"items": {
664+
"type": "object",
665+
"properties": {
666+
"capabilities": {"$ref": "#/definitions/list_of_strings"},
667+
"count": {"type": ["string", "integer"]},
668+
"device_ids": {"$ref": "#/definitions/list_of_strings"},
669+
"driver":{"type": "string"},
670+
"options":{"$ref": "#/definitions/list_or_dict"}
671+
}
672+
},
673+
"additionalProperties": false,
674+
"patternProperties": {"^x-": {}}
675+
}
676+
]
673677
},
674678

675679
"include": {
@@ -743,6 +747,7 @@
743747
"patternProperties": {"^x-": {}}
744748
},
745749
"internal": {"type": ["boolean", "string"]},
750+
"enable_ipv4": {"type": ["boolean", "string"]},
746751
"enable_ipv6": {"type": ["boolean", "string"]},
747752
"attachable": {"type": ["boolean", "string"]},
748753
"labels": {"$ref": "#/definitions/list_or_dict"}

0 commit comments

Comments
 (0)