Skip to content

Commit ba74af9

Browse files
committed
Version test schema
1 parent 3a5136b commit ba74af9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
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": "./schema.json"
7+
"url": "./schemas/tests-schema-0.0.1.json"
88
}
99
]
1010
}

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Some examples of test harnesses using these tests, from the source repository:
77
- [Data model stringify tests](https://github.com/messageformat/messageformat/blob/11c95dab2b25db8454e49ff4daadb817e1d5b770/packages/mf2-messageformat/src/data-model/stringify.test.ts)
88
- [Formatting tests](https://github.com/messageformat/messageformat/blob/11c95dab2b25db8454e49ff4daadb817e1d5b770/packages/mf2-messageformat/src/messageformat.test.ts)
99

10-
A [JSON schema](./schema.json) is included for the test files in this repository.
10+
A JSON schema is included for the test files in this repository. [Semantic-versioned](https://semver.org/) schema files can be found in the [schemas folder](./schemas/).
1111

1212
For users of Visual Studio Code, a [settings file](./.vscode/settings.json) is included that enables schema validation while editing the test files.

test/schema.json renamed to test/schemas/tests-schema-0.0.1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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/tests-schema-0.0.1.json",
34
"title": "MessageFormat 2 data-driven tests source",
45
"description": "This documents the format of MessageFormat 2 source test data.",
56
"type": "object",

0 commit comments

Comments
 (0)