-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
39 lines (39 loc) · 1.29 KB
/
schema.json
File metadata and controls
39 lines (39 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/niri81/json2tests-rs/refs/heads/main/schema.json",
"title": "Test Cases Schema",
"description": "Schema for a collection of named test vectors.",
"type": "object",
"properties": {
"testcases": {
"description": "An object where keys are the test names and values are the test vectors.",
"type": "object",
"additionalProperties": {
"title": "Test Vector",
"type": "object",
"properties": {
"action": {
"description": "The operation to be performed, e.g., 'add'.",
"type": "string"
},
"arguments": {
"description": "The input data for the action.",
"additionalProperties": true
},
"result": {
"description": "The expected result of the action."
},
"panic": {
"description": "The test is expected to panic. When supplied with a string, the panic message will be checked against it.",
"type": ["boolean", "string"]
}
},
"required": ["action"],
"additionalProperties": false
},
"minProperties": 1
}
},
"required": ["testcases"],
"additionalProperties": false
}