Skip to content

Commit bf69a4f

Browse files
committed
update schemas
1 parent b0f90fc commit bf69a4f

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

support/schemas/generators.cue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ import "strings"
4040
// The "copy" key uses a path relative to "/generators/" ending in a test case name,
4141
// such as "manual/samples/3".
4242
copy?: #dirpath
43-
match?: string | [...string]
43+
match?: string | [...string] | {
44+
in?: string | [...string]
45+
ans?: string | [...string]
46+
}
4447

4548
["in" | "in.statement" | "in.download" |
4649
"ans" | "ans.statement" | "ans.download" |

support/schemas/generators_yaml_schema.json

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,38 @@
260260
"items": {
261261
"type": "string"
262262
}
263-
}
263+
},
264+
{
265+
"type": "object",
266+
"properties": {
267+
"in": {
268+
"oneOf": [
269+
{
270+
"type": "string"
271+
},
272+
{
273+
"type": "array",
274+
"items": {
275+
"type": "string"
276+
}
277+
},
278+
],
279+
},
280+
"ans": {
281+
"oneOf": [
282+
{
283+
"type": "string"
284+
},
285+
{
286+
"type": "array",
287+
"items": {
288+
"type": "string"
289+
}
290+
},
291+
],
292+
},
293+
},
294+
},
264295
],
265296
"title": "Match",
266297
"description": "Regular expression(s) that are searched in the test case. Each regular expression that is not found results in a warning."

0 commit comments

Comments
 (0)