Skip to content

Commit 3b45524

Browse files
committed
using mapping syntax, models can be {} (null)
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 45305bf commit 3b45524

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

schema/compose-spec.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -531,19 +531,24 @@
531531
{"type": "object",
532532
"patternProperties": {
533533
"^[a-zA-Z0-9._-]+$": {
534-
"type": "object",
535-
"properties": {
536-
"endpoint_var": {
537-
"type": "string",
538-
"description": "Environment variable set to AI model endpoint."
534+
"oneOf": [
535+
{
536+
"type": "object",
537+
"properties": {
538+
"endpoint_var": {
539+
"type": "string",
540+
"description": "Environment variable set to AI model endpoint."
541+
},
542+
"model_var": {
543+
"type": "string",
544+
"description": "Environment variable set to AI model name."
545+
}
546+
},
547+
"additionalProperties": false,
548+
"patternProperties": {"^x-": {}}
539549
},
540-
"model_var": {
541-
"type": "string",
542-
"description": "Environment variable set to AI model name."
543-
}
544-
},
545-
"additionalProperties": false,
546-
"patternProperties": {"^x-": {}}
550+
{"type": "null"}
551+
]
547552
}
548553
}
549554
}

0 commit comments

Comments
 (0)