Skip to content

Commit 3fc40c2

Browse files
handrewsgithub-actions[bot]
authored andcommitted
New OpenAPI schema iterations
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1d6b9f4 commit 3fc40c2

File tree

4 files changed

+1687
-0
lines changed

4 files changed

+1687
-0
lines changed

oas/3.2/dialect/2025-05-14

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.2/dialect/2025-05-14",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"title": "OpenAPI 3.2 Schema Object Dialect",
5+
"description": "A JSON Schema dialect describing schemas found in OpenAPI v3.2.x Descriptions",
6+
"$dynamicAnchor": "meta",
7+
"$vocabulary": {
8+
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
9+
"https://json-schema.org/draft/2020-12/vocab/content": true,
10+
"https://json-schema.org/draft/2020-12/vocab/core": true,
11+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
12+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
13+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
14+
"https://json-schema.org/draft/2020-12/vocab/validation": true,
15+
"https://spec.openapis.org/oas/3.2/vocab/base": false
16+
},
17+
"allOf": [
18+
{
19+
"$ref": "https://json-schema.org/draft/2020-12/schema"
20+
},
21+
{
22+
"$ref": "https://spec.openapis.org/oas/3.2/meta/2025-05-14"
23+
}
24+
]
25+
}

oas/3.2/meta/2025-05-14

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.2/meta/2025-05-14",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"title": "OAS Base Vocabulary",
5+
"description": "A JSON Schema Vocabulary used in the OpenAPI JSON Schema Dialect",
6+
"$dynamicAnchor": "meta",
7+
"$vocabulary": {
8+
"https://spec.openapis.org/oas/3.2/vocab/base": true
9+
},
10+
"type": [
11+
"object",
12+
"boolean"
13+
],
14+
"properties": {
15+
"discriminator": {
16+
"$ref": "#/$defs/discriminator"
17+
},
18+
"example": true,
19+
"externalDocs": {
20+
"$ref": "#/$defs/external-docs"
21+
},
22+
"xml": {
23+
"$ref": "#/$defs/xml"
24+
}
25+
},
26+
"$defs": {
27+
"discriminator": {
28+
"$ref": "#/$defs/extensible",
29+
"properties": {
30+
"mapping": {
31+
"additionalProperties": {
32+
"type": "string"
33+
},
34+
"type": "object"
35+
},
36+
"propertyName": {
37+
"type": "string"
38+
}
39+
},
40+
"required": [
41+
"propertyName"
42+
],
43+
"type": "object",
44+
"unevaluatedProperties": false
45+
},
46+
"extensible": {
47+
"patternProperties": {
48+
"^x-": true
49+
}
50+
},
51+
"external-docs": {
52+
"$ref": "#/$defs/extensible",
53+
"properties": {
54+
"description": {
55+
"type": "string"
56+
},
57+
"url": {
58+
"format": "uri-reference",
59+
"type": "string"
60+
}
61+
},
62+
"required": [
63+
"url"
64+
],
65+
"type": "object",
66+
"unevaluatedProperties": false
67+
},
68+
"xml": {
69+
"$ref": "#/$defs/extensible",
70+
"properties": {
71+
"nodeType": {
72+
"type": "string",
73+
"enum": [
74+
"element",
75+
"attribute",
76+
"text",
77+
"cdata",
78+
"none"
79+
]
80+
},
81+
"name": {
82+
"type": "string"
83+
},
84+
"namespace": {
85+
"format": "iri",
86+
"type": "string"
87+
},
88+
"prefix": {
89+
"type": "string"
90+
},
91+
"attribute": {
92+
"type": "boolean"
93+
},
94+
"wrapped": {
95+
"type": "boolean"
96+
}
97+
},
98+
"type": "object",
99+
"dependentSchemas": {
100+
"nodeType": {
101+
"properties": {
102+
"attribute": false,
103+
"wrapped": false
104+
}
105+
}
106+
},
107+
"unevaluatedProperties": false
108+
}
109+
}
110+
}

oas/3.2/schema-base/2025-06-10

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.2/schema-base/2025-06-10",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"description": "The description of OpenAPI v3.2.x Documents using the OpenAPI JSON Schema dialect",
5+
"$ref": "https://spec.openapis.org/oas/3.2/schema/2025-06-10",
6+
"properties": {
7+
"jsonSchemaDialect": {
8+
"$ref": "#/$defs/dialect"
9+
}
10+
},
11+
"$defs": {
12+
"dialect": {
13+
"const": "https://spec.openapis.org/oas/3.2/dialect/2025-05-14"
14+
},
15+
"schema": {
16+
"$dynamicAnchor": "meta",
17+
"$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-05-14",
18+
"properties": {
19+
"$schema": {
20+
"$ref": "#/$defs/dialect"
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)