Debian Codegraph @

spec/extras/$data/format.json

raw symbols SCIP
1 [
2 {
3 "description": "one property has format set in another property",
4 "schema": {
5 "properties": {
6 "str": {
7 "format": {
8 "$data": "1/strFormat"
9 }
10 },
11 "strFormat": {}
12 }
13 },
14 "tests": [
15 {
16 "description": "allowed unknown format is valid",
17 "data": {
18 "str": "any value",
19 "strFormat": "allowedUnknown"
20 },
21 "valid": true
22 },
23 {
24 "description": "unknown format is invalid",
25 "data": {
26 "str": "any value",
27 "strFormat": "completelyUnknown"
28 },
29 "valid": false
30 },
31 {
32 "description": "valid if the format is undefined",
33 "data": {
34 "str": "any value"
35 },
36 "valid": true
37 },
38 {
39 "description": "fails if value of format is not a string",
40 "data": {
41 "str": "1963-06-19T08:30:06.283185Z",
42 "strFormat": 1963
43 },
44 "valid": false
45 }
46 ]
47 }
48 ]