json-schema-library 11.1.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mocharc.js +1 -0
- package/CHANGELOG.md +11 -0
- package/README.md +21 -13
- package/bowtie/.editorconfig +21 -0
- package/bowtie/.prettierrc +6 -0
- package/bowtie/BOWTIE.md +54 -0
- package/bowtie/Dockerfile +6 -0
- package/bowtie/bowtie-api.ts +101 -0
- package/bowtie/bowtie-jlib.ts +150 -0
- package/bowtie/bowtie.test.ts +267 -0
- package/bowtie/package.json +11 -0
- package/bowtie/tsconfig.json +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +66 -503
- package/dist/index.d.mts +66 -503
- package/dist/index.mjs +1 -1
- package/dist/jlib.js +2 -13
- package/dist/remotes/index.cjs +1 -0
- package/dist/remotes/index.d.cts +7 -0
- package/dist/remotes/index.d.mts +7 -0
- package/dist/remotes/index.mjs +1 -0
- package/dist/types-B2wwNWyo.d.cts +513 -0
- package/dist/types-BhTU1l2h.d.mts +513 -0
- package/index.ts +0 -3
- package/package.json +14 -8
- package/src/Draft.ts +1 -1
- package/src/Keyword.ts +2 -3
- package/src/SchemaNode.ts +9 -0
- package/src/compileSchema.test.ts +52 -0
- package/src/compileSchema.ts +53 -3
- package/src/draft04/keywords/$ref.ts +22 -14
- package/src/draft04/keywords/exclusiveMaximum.ts +14 -0
- package/src/draft04/keywords/exclusiveMinimum.ts +14 -0
- package/src/draft04/validateSchema.test.ts +20 -0
- package/src/draft04.ts +2 -2
- package/src/draft06/keywords/$ref.ts +15 -5
- package/src/draft06.ts +2 -2
- package/src/draft07.ts +2 -2
- package/src/draft2019-09/keywords/$ref.test.ts +3 -1
- package/src/draft2019-09/keywords/$ref.ts +44 -30
- package/src/draft2019-09/keywords/additionalItems.ts +33 -10
- package/src/draft2019-09/keywords/items.ts +32 -10
- package/src/draft2019-09/keywords/unevaluatedItems.ts +19 -6
- package/src/draft2019-09/methods/getData.ts +1 -1
- package/src/draft2019-09/validateSchema.test.ts +28 -0
- package/src/draft2019.ts +1 -1
- package/src/draft2020.ts +1 -1
- package/src/errors/errors.ts +4 -0
- package/src/formats/formats.ts +35 -28
- package/src/formats/hyperjump.d.ts +172 -0
- package/src/keywords/$ref.ts +50 -17
- package/src/keywords/oneOf.test.ts +3 -3
- package/src/keywords/properties.ts +1 -1
- package/src/keywords/propertyDependencies.ts +1 -1
- package/src/methods/getData.ts +1 -1
- package/src/settings.ts +27 -1
- package/src/validateNode.ts +4 -1
- package/tsconfig.json +11 -4
- package/tsconfig.test.json +9 -2
- package/tsdown.config.ts +1 -1
- package/Dockerfile +0 -6
- package/bowtie_jlib.js +0 -140
- package/remotes/draft04.json +0 -150
- package/remotes/draft06.json +0 -155
- package/remotes/draft07.json +0 -155
- package/remotes/draft2019-09.json +0 -42
- package/remotes/draft2019-09_meta_applicator.json +0 -53
- package/remotes/draft2019-09_meta_content.json +0 -14
- package/remotes/draft2019-09_meta_core.json +0 -54
- package/remotes/draft2019-09_meta_format.json +0 -11
- package/remotes/draft2019-09_meta_meta-data.json +0 -34
- package/remotes/draft2019-09_meta_validation.json +0 -95
- package/remotes/draft2020-12.json +0 -55
- package/remotes/draft2020-12_meta_applicator.json +0 -45
- package/remotes/draft2020-12_meta_content.json +0 -14
- package/remotes/draft2020-12_meta_core.json +0 -48
- package/remotes/draft2020-12_meta_format_annotation.json +0 -11
- package/remotes/draft2020-12_meta_format_assertion.json +0 -11
- package/remotes/draft2020-12_meta_meta_data.json +0 -34
- package/remotes/draft2020-12_meta_unevaluated.json +0 -12
- package/remotes/draft2020-12_meta_validation.json +0 -87
- package/remotes/index.ts +0 -48
package/remotes/draft07.json
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"title": "Core schema meta-schema",
|
|
5
|
-
"definitions": {
|
|
6
|
-
"schemaArray": {
|
|
7
|
-
"type": "array",
|
|
8
|
-
"minItems": 1,
|
|
9
|
-
"items": { "$ref": "#" }
|
|
10
|
-
},
|
|
11
|
-
"nonNegativeInteger": {
|
|
12
|
-
"type": "integer",
|
|
13
|
-
"minimum": 0
|
|
14
|
-
},
|
|
15
|
-
"nonNegativeIntegerDefault0": {
|
|
16
|
-
"allOf": [{ "$ref": "#/definitions/nonNegativeInteger" }, { "default": 0 }]
|
|
17
|
-
},
|
|
18
|
-
"simpleTypes": {
|
|
19
|
-
"enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
|
|
20
|
-
},
|
|
21
|
-
"stringArray": {
|
|
22
|
-
"type": "array",
|
|
23
|
-
"items": { "type": "string" },
|
|
24
|
-
"uniqueItems": true,
|
|
25
|
-
"default": []
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"type": ["object", "boolean"],
|
|
29
|
-
"properties": {
|
|
30
|
-
"$id": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"format": "uri-reference"
|
|
33
|
-
},
|
|
34
|
-
"$schema": {
|
|
35
|
-
"type": "string",
|
|
36
|
-
"format": "uri"
|
|
37
|
-
},
|
|
38
|
-
"$ref": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"format": "uri-reference"
|
|
41
|
-
},
|
|
42
|
-
"$comment": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"title": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"description": {
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
"default": true,
|
|
52
|
-
"readOnly": {
|
|
53
|
-
"type": "boolean",
|
|
54
|
-
"default": false
|
|
55
|
-
},
|
|
56
|
-
"writeOnly": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"default": false
|
|
59
|
-
},
|
|
60
|
-
"examples": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"items": true
|
|
63
|
-
},
|
|
64
|
-
"multipleOf": {
|
|
65
|
-
"type": "number",
|
|
66
|
-
"exclusiveMinimum": 0
|
|
67
|
-
},
|
|
68
|
-
"maximum": {
|
|
69
|
-
"type": "number"
|
|
70
|
-
},
|
|
71
|
-
"exclusiveMaximum": {
|
|
72
|
-
"type": "number"
|
|
73
|
-
},
|
|
74
|
-
"minimum": {
|
|
75
|
-
"type": "number"
|
|
76
|
-
},
|
|
77
|
-
"exclusiveMinimum": {
|
|
78
|
-
"type": "number"
|
|
79
|
-
},
|
|
80
|
-
"maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
81
|
-
"minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
82
|
-
"pattern": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"format": "regex"
|
|
85
|
-
},
|
|
86
|
-
"additionalItems": { "$ref": "#" },
|
|
87
|
-
"items": {
|
|
88
|
-
"anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/schemaArray" }],
|
|
89
|
-
"default": true
|
|
90
|
-
},
|
|
91
|
-
"maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
92
|
-
"minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
93
|
-
"uniqueItems": {
|
|
94
|
-
"type": "boolean",
|
|
95
|
-
"default": false
|
|
96
|
-
},
|
|
97
|
-
"contains": { "$ref": "#" },
|
|
98
|
-
"maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
99
|
-
"minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
100
|
-
"required": { "$ref": "#/definitions/stringArray" },
|
|
101
|
-
"additionalProperties": { "$ref": "#" },
|
|
102
|
-
"definitions": {
|
|
103
|
-
"type": "object",
|
|
104
|
-
"additionalProperties": { "$ref": "#" },
|
|
105
|
-
"default": {}
|
|
106
|
-
},
|
|
107
|
-
"properties": {
|
|
108
|
-
"type": "object",
|
|
109
|
-
"additionalProperties": { "$ref": "#" },
|
|
110
|
-
"default": {}
|
|
111
|
-
},
|
|
112
|
-
"patternProperties": {
|
|
113
|
-
"type": "object",
|
|
114
|
-
"additionalProperties": { "$ref": "#" },
|
|
115
|
-
"propertyNames": { "format": "regex" },
|
|
116
|
-
"default": {}
|
|
117
|
-
},
|
|
118
|
-
"dependencies": {
|
|
119
|
-
"type": "object",
|
|
120
|
-
"additionalProperties": {
|
|
121
|
-
"anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/stringArray" }]
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"propertyNames": { "$ref": "#" },
|
|
125
|
-
"const": true,
|
|
126
|
-
"enum": {
|
|
127
|
-
"type": "array",
|
|
128
|
-
"items": true,
|
|
129
|
-
"minItems": 1,
|
|
130
|
-
"uniqueItems": true
|
|
131
|
-
},
|
|
132
|
-
"type": {
|
|
133
|
-
"anyOf": [
|
|
134
|
-
{ "$ref": "#/definitions/simpleTypes" },
|
|
135
|
-
{
|
|
136
|
-
"type": "array",
|
|
137
|
-
"items": { "$ref": "#/definitions/simpleTypes" },
|
|
138
|
-
"minItems": 1,
|
|
139
|
-
"uniqueItems": true
|
|
140
|
-
}
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"format": { "type": "string" },
|
|
144
|
-
"contentMediaType": { "type": "string" },
|
|
145
|
-
"contentEncoding": { "type": "string" },
|
|
146
|
-
"if": { "$ref": "#" },
|
|
147
|
-
"then": { "$ref": "#" },
|
|
148
|
-
"else": { "$ref": "#" },
|
|
149
|
-
"allOf": { "$ref": "#/definitions/schemaArray" },
|
|
150
|
-
"anyOf": { "$ref": "#/definitions/schemaArray" },
|
|
151
|
-
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
|
152
|
-
"not": { "$ref": "#" }
|
|
153
|
-
},
|
|
154
|
-
"default": true
|
|
155
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/schema",
|
|
4
|
-
"$vocabulary": {
|
|
5
|
-
"https://json-schema.org/draft/2019-09/vocab/core": true,
|
|
6
|
-
"https://json-schema.org/draft/2019-09/vocab/applicator": true,
|
|
7
|
-
"https://json-schema.org/draft/2019-09/vocab/validation": true,
|
|
8
|
-
"https://json-schema.org/draft/2019-09/vocab/meta-data": true,
|
|
9
|
-
"https://json-schema.org/draft/2019-09/vocab/format": false,
|
|
10
|
-
"https://json-schema.org/draft/2019-09/vocab/content": true
|
|
11
|
-
},
|
|
12
|
-
"$recursiveAnchor": true,
|
|
13
|
-
|
|
14
|
-
"title": "Core and Validation specifications meta-schema",
|
|
15
|
-
"allOf": [
|
|
16
|
-
{"$ref": "meta/core"},
|
|
17
|
-
{"$ref": "meta/applicator"},
|
|
18
|
-
{"$ref": "meta/validation"},
|
|
19
|
-
{"$ref": "meta/meta-data"},
|
|
20
|
-
{"$ref": "meta/format"},
|
|
21
|
-
{"$ref": "meta/content"}
|
|
22
|
-
],
|
|
23
|
-
"type": ["object", "boolean"],
|
|
24
|
-
"properties": {
|
|
25
|
-
"definitions": {
|
|
26
|
-
"$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
|
|
27
|
-
"type": "object",
|
|
28
|
-
"additionalProperties": { "$recursiveRef": "#" },
|
|
29
|
-
"default": {}
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
|
|
33
|
-
"type": "object",
|
|
34
|
-
"additionalProperties": {
|
|
35
|
-
"anyOf": [
|
|
36
|
-
{ "$recursiveRef": "#" },
|
|
37
|
-
{ "$ref": "meta/validation#/$defs/stringArray" }
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/meta/applicator",
|
|
4
|
-
"$recursiveAnchor": true,
|
|
5
|
-
|
|
6
|
-
"title": "Applicator vocabulary meta-schema",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"additionalItems": { "$recursiveRef": "#" },
|
|
10
|
-
"unevaluatedItems": { "$recursiveRef": "#" },
|
|
11
|
-
"items": {
|
|
12
|
-
"anyOf": [
|
|
13
|
-
{ "$recursiveRef": "#" },
|
|
14
|
-
{ "$ref": "#/$defs/schemaArray" }
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"contains": { "$recursiveRef": "#" },
|
|
18
|
-
"additionalProperties": { "$recursiveRef": "#" },
|
|
19
|
-
"unevaluatedProperties": { "$recursiveRef": "#" },
|
|
20
|
-
"properties": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"additionalProperties": { "$recursiveRef": "#" },
|
|
23
|
-
"default": {}
|
|
24
|
-
},
|
|
25
|
-
"patternProperties": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"additionalProperties": { "$recursiveRef": "#" },
|
|
28
|
-
"propertyNames": { "format": "regex" },
|
|
29
|
-
"default": {}
|
|
30
|
-
},
|
|
31
|
-
"dependentSchemas": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"additionalProperties": {
|
|
34
|
-
"$recursiveRef": "#"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"propertyNames": { "$recursiveRef": "#" },
|
|
38
|
-
"if": { "$recursiveRef": "#" },
|
|
39
|
-
"then": { "$recursiveRef": "#" },
|
|
40
|
-
"else": { "$recursiveRef": "#" },
|
|
41
|
-
"allOf": { "$ref": "#/$defs/schemaArray" },
|
|
42
|
-
"anyOf": { "$ref": "#/$defs/schemaArray" },
|
|
43
|
-
"oneOf": { "$ref": "#/$defs/schemaArray" },
|
|
44
|
-
"not": { "$recursiveRef": "#" }
|
|
45
|
-
},
|
|
46
|
-
"$defs": {
|
|
47
|
-
"schemaArray": {
|
|
48
|
-
"type": "array",
|
|
49
|
-
"minItems": 1,
|
|
50
|
-
"items": { "$recursiveRef": "#" }
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/meta/content",
|
|
4
|
-
"$recursiveAnchor": true,
|
|
5
|
-
|
|
6
|
-
"title": "Content vocabulary meta-schema",
|
|
7
|
-
|
|
8
|
-
"type": ["object", "boolean"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"contentMediaType": { "type": "string" },
|
|
11
|
-
"contentEncoding": { "type": "string" },
|
|
12
|
-
"contentSchema": { "$recursiveRef": "#" }
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/meta/core",
|
|
4
|
-
"$recursiveAnchor": true,
|
|
5
|
-
|
|
6
|
-
"title": "Core vocabulary meta-schema",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"$id": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"format": "uri-reference",
|
|
12
|
-
"$comment": "Non-empty fragments not allowed.",
|
|
13
|
-
"pattern": "^[^#]*#?$"
|
|
14
|
-
},
|
|
15
|
-
"$schema": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"format": "uri"
|
|
18
|
-
},
|
|
19
|
-
"$anchor": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"
|
|
22
|
-
},
|
|
23
|
-
"$ref": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"format": "uri-reference"
|
|
26
|
-
},
|
|
27
|
-
"$recursiveRef": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": "uri-reference"
|
|
30
|
-
},
|
|
31
|
-
"$recursiveAnchor": {
|
|
32
|
-
"type": "boolean",
|
|
33
|
-
"default": false
|
|
34
|
-
},
|
|
35
|
-
"$vocabulary": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"propertyNames": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"format": "uri"
|
|
40
|
-
},
|
|
41
|
-
"additionalProperties": {
|
|
42
|
-
"type": "boolean"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"$comment": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"$defs": {
|
|
49
|
-
"type": "object",
|
|
50
|
-
"additionalProperties": { "$recursiveRef": "#" },
|
|
51
|
-
"default": {}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/meta/format",
|
|
4
|
-
"$recursiveAnchor": true,
|
|
5
|
-
|
|
6
|
-
"title": "Format vocabulary meta-schema",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"format": { "type": "string" }
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/meta/meta-data",
|
|
4
|
-
"$recursiveAnchor": true,
|
|
5
|
-
|
|
6
|
-
"title": "Meta-data vocabulary meta-schema",
|
|
7
|
-
|
|
8
|
-
"type": ["object", "boolean"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"title": {
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"description": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"default": true,
|
|
17
|
-
"deprecated": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"default": false
|
|
20
|
-
},
|
|
21
|
-
"readOnly": {
|
|
22
|
-
"type": "boolean",
|
|
23
|
-
"default": false
|
|
24
|
-
},
|
|
25
|
-
"writeOnly": {
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"examples": {
|
|
30
|
-
"type": "array",
|
|
31
|
-
"items": true
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2019-09/meta/validation",
|
|
4
|
-
"$recursiveAnchor": true,
|
|
5
|
-
|
|
6
|
-
"title": "Validation vocabulary meta-schema",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"multipleOf": {
|
|
10
|
-
"type": "number",
|
|
11
|
-
"exclusiveMinimum": 0
|
|
12
|
-
},
|
|
13
|
-
"maximum": {
|
|
14
|
-
"type": "number"
|
|
15
|
-
},
|
|
16
|
-
"exclusiveMaximum": {
|
|
17
|
-
"type": "number"
|
|
18
|
-
},
|
|
19
|
-
"minimum": {
|
|
20
|
-
"type": "number"
|
|
21
|
-
},
|
|
22
|
-
"exclusiveMinimum": {
|
|
23
|
-
"type": "number"
|
|
24
|
-
},
|
|
25
|
-
"maxLength": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
26
|
-
"minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
27
|
-
"pattern": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": "regex"
|
|
30
|
-
},
|
|
31
|
-
"maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
32
|
-
"minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
33
|
-
"uniqueItems": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"default": false
|
|
36
|
-
},
|
|
37
|
-
"maxContains": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
38
|
-
"minContains": {
|
|
39
|
-
"$ref": "#/$defs/nonNegativeInteger",
|
|
40
|
-
"default": 1
|
|
41
|
-
},
|
|
42
|
-
"maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
43
|
-
"minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
44
|
-
"required": { "$ref": "#/$defs/stringArray" },
|
|
45
|
-
"dependentRequired": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"additionalProperties": {
|
|
48
|
-
"$ref": "#/$defs/stringArray"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"const": true,
|
|
52
|
-
"enum": {
|
|
53
|
-
"type": "array",
|
|
54
|
-
"items": true
|
|
55
|
-
},
|
|
56
|
-
"type": {
|
|
57
|
-
"anyOf": [
|
|
58
|
-
{ "$ref": "#/$defs/simpleTypes" },
|
|
59
|
-
{
|
|
60
|
-
"type": "array",
|
|
61
|
-
"items": { "$ref": "#/$defs/simpleTypes" },
|
|
62
|
-
"minItems": 1,
|
|
63
|
-
"uniqueItems": true
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"$defs": {
|
|
69
|
-
"nonNegativeInteger": {
|
|
70
|
-
"type": "integer",
|
|
71
|
-
"minimum": 0
|
|
72
|
-
},
|
|
73
|
-
"nonNegativeIntegerDefault0": {
|
|
74
|
-
"$ref": "#/$defs/nonNegativeInteger",
|
|
75
|
-
"default": 0
|
|
76
|
-
},
|
|
77
|
-
"simpleTypes": {
|
|
78
|
-
"enum": [
|
|
79
|
-
"array",
|
|
80
|
-
"boolean",
|
|
81
|
-
"integer",
|
|
82
|
-
"null",
|
|
83
|
-
"number",
|
|
84
|
-
"object",
|
|
85
|
-
"string"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"stringArray": {
|
|
89
|
-
"type": "array",
|
|
90
|
-
"items": { "type": "string" },
|
|
91
|
-
"uniqueItems": true,
|
|
92
|
-
"default": []
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"$vocabulary": {
|
|
5
|
-
"https://json-schema.org/draft/2020-12/vocab/core": true,
|
|
6
|
-
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
|
|
7
|
-
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
|
|
8
|
-
"https://json-schema.org/draft/2020-12/vocab/validation": true,
|
|
9
|
-
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
|
|
10
|
-
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
|
|
11
|
-
"https://json-schema.org/draft/2020-12/vocab/content": true
|
|
12
|
-
},
|
|
13
|
-
"$dynamicAnchor": "meta",
|
|
14
|
-
|
|
15
|
-
"title": "Core and Validation specifications meta-schema",
|
|
16
|
-
"allOf": [
|
|
17
|
-
{ "$ref": "meta/core" },
|
|
18
|
-
{ "$ref": "meta/applicator" },
|
|
19
|
-
{ "$ref": "meta/unevaluated" },
|
|
20
|
-
{ "$ref": "meta/validation" },
|
|
21
|
-
{ "$ref": "meta/meta-data" },
|
|
22
|
-
{ "$ref": "meta/format-annotation" },
|
|
23
|
-
{ "$ref": "meta/content" }
|
|
24
|
-
],
|
|
25
|
-
"type": ["object", "boolean"],
|
|
26
|
-
"$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",
|
|
27
|
-
"properties": {
|
|
28
|
-
"definitions": {
|
|
29
|
-
"$comment": "\"definitions\" has been replaced by \"$defs\".",
|
|
30
|
-
"type": "object",
|
|
31
|
-
"additionalProperties": { "$dynamicRef": "#meta" },
|
|
32
|
-
"deprecated": true,
|
|
33
|
-
"default": {}
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.",
|
|
37
|
-
"type": "object",
|
|
38
|
-
"additionalProperties": {
|
|
39
|
-
"anyOf": [{ "$dynamicRef": "#meta" }, { "$ref": "meta/validation#/$defs/stringArray" }]
|
|
40
|
-
},
|
|
41
|
-
"deprecated": true,
|
|
42
|
-
"default": {}
|
|
43
|
-
},
|
|
44
|
-
"$recursiveAnchor": {
|
|
45
|
-
"$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".",
|
|
46
|
-
"$ref": "meta/core#/$defs/anchorString",
|
|
47
|
-
"deprecated": true
|
|
48
|
-
},
|
|
49
|
-
"$recursiveRef": {
|
|
50
|
-
"$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".",
|
|
51
|
-
"$ref": "meta/core#/$defs/uriReferenceString",
|
|
52
|
-
"deprecated": true
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2020-12/meta/applicator",
|
|
4
|
-
"$dynamicAnchor": "meta",
|
|
5
|
-
|
|
6
|
-
"title": "Applicator vocabulary meta-schema",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"prefixItems": { "$ref": "#/$defs/schemaArray" },
|
|
10
|
-
"items": { "$dynamicRef": "#meta" },
|
|
11
|
-
"contains": { "$dynamicRef": "#meta" },
|
|
12
|
-
"additionalProperties": { "$dynamicRef": "#meta" },
|
|
13
|
-
"properties": {
|
|
14
|
-
"type": "object",
|
|
15
|
-
"additionalProperties": { "$dynamicRef": "#meta" },
|
|
16
|
-
"default": {}
|
|
17
|
-
},
|
|
18
|
-
"patternProperties": {
|
|
19
|
-
"type": "object",
|
|
20
|
-
"additionalProperties": { "$dynamicRef": "#meta" },
|
|
21
|
-
"propertyNames": { "format": "regex" },
|
|
22
|
-
"default": {}
|
|
23
|
-
},
|
|
24
|
-
"dependentSchemas": {
|
|
25
|
-
"type": "object",
|
|
26
|
-
"additionalProperties": { "$dynamicRef": "#meta" },
|
|
27
|
-
"default": {}
|
|
28
|
-
},
|
|
29
|
-
"propertyNames": { "$dynamicRef": "#meta" },
|
|
30
|
-
"if": { "$dynamicRef": "#meta" },
|
|
31
|
-
"then": { "$dynamicRef": "#meta" },
|
|
32
|
-
"else": { "$dynamicRef": "#meta" },
|
|
33
|
-
"allOf": { "$ref": "#/$defs/schemaArray" },
|
|
34
|
-
"anyOf": { "$ref": "#/$defs/schemaArray" },
|
|
35
|
-
"oneOf": { "$ref": "#/$defs/schemaArray" },
|
|
36
|
-
"not": { "$dynamicRef": "#meta" }
|
|
37
|
-
},
|
|
38
|
-
"$defs": {
|
|
39
|
-
"schemaArray": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"minItems": 1,
|
|
42
|
-
"items": { "$dynamicRef": "#meta" }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2020-12/meta/content",
|
|
4
|
-
"$dynamicAnchor": "meta",
|
|
5
|
-
|
|
6
|
-
"title": "Content vocabulary meta-schema",
|
|
7
|
-
|
|
8
|
-
"type": ["object", "boolean"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"contentEncoding": { "type": "string" },
|
|
11
|
-
"contentMediaType": { "type": "string" },
|
|
12
|
-
"contentSchema": { "$dynamicRef": "#meta" }
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2020-12/meta/core",
|
|
4
|
-
"$dynamicAnchor": "meta",
|
|
5
|
-
|
|
6
|
-
"title": "Core vocabulary meta-schema",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"$id": {
|
|
10
|
-
"$ref": "#/$defs/uriReferenceString",
|
|
11
|
-
"$comment": "Non-empty fragments not allowed.",
|
|
12
|
-
"pattern": "^[^#]*#?$"
|
|
13
|
-
},
|
|
14
|
-
"$schema": { "$ref": "#/$defs/uriString" },
|
|
15
|
-
"$ref": { "$ref": "#/$defs/uriReferenceString" },
|
|
16
|
-
"$anchor": { "$ref": "#/$defs/anchorString" },
|
|
17
|
-
"$dynamicRef": { "$ref": "#/$defs/uriReferenceString" },
|
|
18
|
-
"$dynamicAnchor": { "$ref": "#/$defs/anchorString" },
|
|
19
|
-
"$vocabulary": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"propertyNames": { "$ref": "#/$defs/uriString" },
|
|
22
|
-
"additionalProperties": {
|
|
23
|
-
"type": "boolean"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"$comment": {
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"$defs": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"additionalProperties": { "$dynamicRef": "#meta" }
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"$defs": {
|
|
35
|
-
"anchorString": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
|
|
38
|
-
},
|
|
39
|
-
"uriString": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"format": "uri"
|
|
42
|
-
},
|
|
43
|
-
"uriReferenceString": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"format": "uri-reference"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",
|
|
4
|
-
"$dynamicAnchor": "meta",
|
|
5
|
-
|
|
6
|
-
"title": "Format vocabulary meta-schema for annotation results",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"format": { "type": "string" }
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",
|
|
4
|
-
"$dynamicAnchor": "meta",
|
|
5
|
-
|
|
6
|
-
"title": "Format vocabulary meta-schema for assertion results",
|
|
7
|
-
"type": ["object", "boolean"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"format": { "type": "string" }
|
|
10
|
-
}
|
|
11
|
-
}
|