Skip to content

Commit cd0d4bf

Browse files
committed
re-unite meta-schema
1 parent 298aa14 commit cd0d4bf

File tree

9 files changed

+187
-283
lines changed

9 files changed

+187
-283
lines changed

specs/meta/applicator.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

specs/meta/content.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

specs/meta/core.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

specs/meta/format-annotation.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

specs/meta/format-assertion.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

specs/meta/meta-data.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

specs/meta/meta.json

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
{
2+
"$schema": "https://json-schema.org/version/year/meta",
3+
"$id": "https://json-schema.org/version/year/meta",
4+
"$dynamicAnchor": "meta",
5+
6+
"title": "JSON Schema Core and Validation specification meta-schema",
7+
"type": ["object", "boolean"],
8+
"properties": {
9+
"$id": {
10+
"$ref": "#/$defs/iriReferenceString",
11+
"$comment": "Fragments not allowed.",
12+
"pattern": "^[^#]*$"
13+
},
14+
"$schema": { "$ref": "#/$defs/iriString" },
15+
"$ref": { "$ref": "#/$defs/iriReferenceString" },
16+
"$anchor": { "$ref": "#/$defs/anchorString" },
17+
"$dynamicRef": { "$ref": "#/$defs/iriReferenceString" },
18+
"$dynamicAnchor": { "$ref": "#/$defs/anchorString" },
19+
"$comment": {
20+
"type": "string"
21+
},
22+
"$defs": {
23+
"type": "object",
24+
"additionalProperties": { "$dynamicRef": "#meta" }
25+
},
26+
"title": {
27+
"type": "string"
28+
},
29+
"description": {
30+
"type": "string"
31+
},
32+
"default": true,
33+
"deprecated": {
34+
"type": "boolean",
35+
"default": false
36+
},
37+
"readOnly": {
38+
"type": "boolean",
39+
"default": false
40+
},
41+
"writeOnly": {
42+
"type": "boolean",
43+
"default": false
44+
},
45+
"examples": {
46+
"type": "array",
47+
"items": true
48+
},
49+
"prefixItems": { "$ref": "#/$defs/schemaArray" },
50+
"items": { "$dynamicRef": "#meta" },
51+
"maxContains": { "$ref": "#/$defs/nonNegativeInteger" },
52+
"minContains": {
53+
"$ref": "#/$defs/nonNegativeInteger",
54+
"default": 1
55+
},
56+
"contains": { "$dynamicRef": "#meta" },
57+
"additionalProperties": { "$dynamicRef": "#meta" },
58+
"properties": {
59+
"type": "object",
60+
"additionalProperties": { "$dynamicRef": "#meta" },
61+
"default": {}
62+
},
63+
"patternProperties": {
64+
"type": "object",
65+
"additionalProperties": { "$dynamicRef": "#meta" },
66+
"propertyNames": { "format": "regex" },
67+
"default": {}
68+
},
69+
"dependentSchemas": {
70+
"type": "object",
71+
"additionalProperties": { "$dynamicRef": "#meta" },
72+
"default": {}
73+
},
74+
"propertyNames": { "$dynamicRef": "#meta" },
75+
"if": { "$dynamicRef": "#meta" },
76+
"then": { "$dynamicRef": "#meta" },
77+
"else": { "$dynamicRef": "#meta" },
78+
"allOf": { "$ref": "#/$defs/schemaArray" },
79+
"anyOf": { "$ref": "#/$defs/schemaArray" },
80+
"oneOf": { "$ref": "#/$defs/schemaArray" },
81+
"not": { "$dynamicRef": "#meta" },
82+
"unevaluatedItems": { "$dynamicRef": "#meta" },
83+
"unevaluatedProperties": { "$dynamicRef": "#meta" },
84+
"type": {
85+
"anyOf": [
86+
{ "$ref": "#/$defs/simpleTypes" },
87+
{
88+
"type": "array",
89+
"items": { "$ref": "#/$defs/simpleTypes" },
90+
"minItems": 1,
91+
"uniqueItems": true
92+
}
93+
]
94+
},
95+
"const": true,
96+
"enum": {
97+
"type": "array",
98+
"items": true
99+
},
100+
"multipleOf": {
101+
"type": "number",
102+
"exclusiveMinimum": 0
103+
},
104+
"maximum": {
105+
"type": "number"
106+
},
107+
"exclusiveMaximum": {
108+
"type": "number"
109+
},
110+
"minimum": {
111+
"type": "number"
112+
},
113+
"exclusiveMinimum": {
114+
"type": "number"
115+
},
116+
"maxLength": { "$ref": "#/$defs/nonNegativeInteger" },
117+
"minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
118+
"pattern": {
119+
"type": "string",
120+
"format": "regex"
121+
},
122+
"maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
123+
"minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
124+
"uniqueItems": {
125+
"type": "boolean",
126+
"default": false
127+
},
128+
"maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
129+
"minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
130+
"required": { "$ref": "#/$defs/stringArray" },
131+
"dependentRequired": {
132+
"type": "object",
133+
"additionalProperties": {
134+
"$ref": "#/$defs/stringArray"
135+
}
136+
},
137+
"format": { "type": "string" },
138+
"contentEncoding": { "type": "string" },
139+
"contentMediaType": { "type": "string" },
140+
"contentSchema": { "$dynamicRef": "#meta" },
141+
142+
"$vocabulary": {
143+
"$comment": "Proposed keyword: https://github.com/json-schema-org/json-schema-spec/blob/main/specs/proposals/vocabularies.md"
144+
},
145+
"propertyDependencies": {
146+
"$comment": "Proposed keyword: https://github.com/json-schema-org/json-schema-spec/blob/main/specs/proposals/propertyDependencies.md"
147+
}
148+
},
149+
"$defs": {
150+
"anchorString": {
151+
"type": "string",
152+
"pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
153+
},
154+
"iriString": {
155+
"type": "string",
156+
"format": "iri"
157+
},
158+
"iriReferenceString": {
159+
"type": "string",
160+
"format": "iri-reference"
161+
},
162+
"nonNegativeInteger": {
163+
"type": "integer",
164+
"minimum": 0
165+
},
166+
"nonNegativeIntegerDefault0": {
167+
"$ref": "#/$defs/nonNegativeInteger",
168+
"default": 0
169+
},
170+
"schemaArray": {
171+
"type": "array",
172+
"minItems": 1,
173+
"items": { "$dynamicRef": "#meta" }
174+
},
175+
"simpleTypes": {
176+
"enum": [
177+
"array",
178+
"boolean",
179+
"integer",
180+
"null",
181+
"number",
182+
"object",
183+
"string"
184+
]
185+
}
186+
}
187+
}

specs/meta/unevaluated.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)