Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e929dbc

Browse files
Merge pull request #1610 from json-schema-org/gregsdennis/meta-schema
re-unite meta-schema
2 parents 298aa14 + bba80a7 commit e929dbc

File tree

9 files changed

+199
-283
lines changed

9 files changed

+199
-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: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
{
2+
"$schema": "https://json-schema.org/1/2025",
3+
"$id": "https://json-schema.org/1/2025",
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+
"patternProperties": {
150+
"^x-": true
151+
},
152+
"propertyNames": {
153+
"pattern": "^[^$]|^\\$(id|schema|ref|anchor|dynamicRef|dynamicAnchor|comment|defs)$"
154+
},
155+
"$defs": {
156+
"anchorString": {
157+
"type": "string",
158+
"pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
159+
},
160+
"iriString": {
161+
"type": "string",
162+
"format": "iri"
163+
},
164+
"iriReferenceString": {
165+
"type": "string",
166+
"format": "iri-reference"
167+
},
168+
"nonNegativeInteger": {
169+
"type": "integer",
170+
"minimum": 0
171+
},
172+
"nonNegativeIntegerDefault0": {
173+
"$ref": "#/$defs/nonNegativeInteger",
174+
"default": 0
175+
},
176+
"schemaArray": {
177+
"type": "array",
178+
"minItems": 1,
179+
"items": { "$dynamicRef": "#meta" }
180+
},
181+
"simpleTypes": {
182+
"enum": [
183+
"array",
184+
"boolean",
185+
"integer",
186+
"null",
187+
"number",
188+
"object",
189+
"string"
190+
]
191+
},
192+
"stringArray": {
193+
"type": "array",
194+
"items": { "type": "string" },
195+
"uniqueItems": true,
196+
"default": []
197+
}
198+
}
199+
}

‎specs/meta/unevaluated.json

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /