-
-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathflag.json
More file actions
42 lines (42 loc) · 1.57 KB
/
flag.json
File metadata and controls
42 lines (42 loc) · 1.57 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
40
41
42
[
{
"description": "flag output has only valid key, no extra keys",
"schema": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://json-schema.org/tests/structure/draft2019-09/flag/0",
"type": "string"
},
"tests": [
{
"description": "valid schema and valid data produces only valid true",
"data": "hello",
"output": {
"flag": {
"$id": "https://json-schema.org/tests/structure/draft2019-09/flag/0/tests/0/flag",
"$ref": "/draft/2019-09/output/schema",
"properties": {
"valid": { "const": true }
},
"required": ["valid"],
"additionalProperties": false
}
}
},
{
"description": "valid schema and invalid data produces only valid false",
"data": 1,
"output": {
"flag": {
"$id": "https://json-schema.org/tests/structure/draft2019-09/flag/0/tests/1/flag",
"$ref": "/draft/2019-09/output/schema",
"properties": {
"valid": { "const": false }
},
"required": ["valid"],
"additionalProperties": false
}
}
}
]
}
]