Skip to content

Commit 8544c2a

Browse files
committed
Align test schema with error spec
1 parent b19ecf2 commit 8544c2a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

test/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"fileMatch": [
55
"tests/**/*.json"
66
],
7-
"url": "./schemas/v0/tests.schema.json"
7+
"url": "./schemas/v1/tests.schema.json"
88
}
99
]
1010
}

test/schemas/v0/tests.schema.json renamed to test/schemas/v1/tests.schema.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v0/tests.schema.json",
3+
"$id": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v1/tests.schema.json",
44
"title": "MessageFormat 2 data-driven tests",
5-
"description": "This is the main schema for MessageFormat 2 test source data.",
5+
"description": "The main schema for MessageFormat 2 test data.",
66
"type": "object",
77
"additionalProperties": false,
88
"required": [
@@ -11,7 +11,7 @@
1111
"properties": {
1212
"scenario": {
1313
"type": "string",
14-
"description": "Identifier for the tests in the file"
14+
"description": "Identifier for the tests in the file."
1515
},
1616
"description": {
1717
"type": "string",
@@ -351,12 +351,11 @@
351351
"unresolved-variable",
352352
"unknown-function",
353353
"unsupported-expression",
354-
"invalid-expression",
355-
"operand-mismatch",
356354
"unsupported-statement",
357-
"selection-error",
358-
"formatting-error",
359-
"bad-input"
355+
"bad-selector",
356+
"bad-operand",
357+
"bad-option",
358+
"bad-variant-key"
360359
]
361360
}
362361
}

0 commit comments

Comments
 (0)