Skip to content

Commit 2b3c457

Browse files
authored
ensure 'position' is specified if 'argument_positional' is used (#192)
1 parent 1066903 commit 2b3c457

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

internal/provider/mozilla_ai/data/schema.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,23 @@
241241
"description",
242242
"type"
243243
],
244-
"additionalProperties": false
244+
"additionalProperties": false,
245+
"allOf": [
246+
{
247+
"if": {
248+
"properties": {
249+
"type": {
250+
"const": "argument_positional"
251+
}
252+
}
253+
},
254+
"then": {
255+
"required": [
256+
"position"
257+
]
258+
}
259+
}
260+
]
245261
},
246262
"Repository": {
247263
"type": "object",

0 commit comments

Comments
 (0)