Skip to content

Commit 15c9038

Browse files
lornajanegithub-actions[bot]
authored andcommitted
New OpenAPI schema iterations
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 862d6f4 commit 15c9038

File tree

4 files changed

+1797
-0
lines changed

4 files changed

+1797
-0
lines changed

oas/3.2/dialect/2025-09-17

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-09-17",
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-09-17"
23+
}
24+
]
25+
}

oas/3.2/meta/2025-09-17

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.2/meta/2025-09-17",
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": {
19+
"deprecated": true
20+
},
21+
"externalDocs": {
22+
"$ref": "#/$defs/external-docs"
23+
},
24+
"xml": {
25+
"$ref": "#/$defs/xml"
26+
}
27+
},
28+
"$defs": {
29+
"discriminator": {
30+
"$ref": "#/$defs/extensible",
31+
"properties": {
32+
"mapping": {
33+
"additionalProperties": {
34+
"type": "string"
35+
},
36+
"type": "object"
37+
},
38+
"defaultMapping": {
39+
"type": "string"
40+
},
41+
"propertyName": {
42+
"type": "string"
43+
}
44+
},
45+
"type": "object",
46+
"unevaluatedProperties": false
47+
},
48+
"extensible": {
49+
"patternProperties": {
50+
"^x-": true
51+
}
52+
},
53+
"external-docs": {
54+
"$ref": "#/$defs/extensible",
55+
"properties": {
56+
"description": {
57+
"type": "string"
58+
},
59+
"url": {
60+
"format": "uri-reference",
61+
"type": "string"
62+
}
63+
},
64+
"required": [
65+
"url"
66+
],
67+
"type": "object",
68+
"unevaluatedProperties": false
69+
},
70+
"xml": {
71+
"$ref": "#/$defs/extensible",
72+
"properties": {
73+
"nodeType": {
74+
"type": "string",
75+
"enum": [
76+
"element",
77+
"attribute",
78+
"text",
79+
"cdata",
80+
"none"
81+
]
82+
},
83+
"name": {
84+
"type": "string"
85+
},
86+
"namespace": {
87+
"format": "iri",
88+
"type": "string"
89+
},
90+
"prefix": {
91+
"type": "string"
92+
},
93+
"attribute": {
94+
"type": "boolean",
95+
"deprecated": true
96+
},
97+
"wrapped": {
98+
"type": "boolean",
99+
"deprecated": true
100+
}
101+
},
102+
"type": "object",
103+
"dependentSchemas": {
104+
"nodeType": {
105+
"properties": {
106+
"attribute": false,
107+
"wrapped": false
108+
}
109+
}
110+
},
111+
"unevaluatedProperties": false
112+
}
113+
}
114+
}

oas/3.2/schema-base/2025-09-17

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-09-17",
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-09-17",
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-09-17"
14+
},
15+
"schema": {
16+
"$dynamicAnchor": "meta",
17+
"$ref": "https://spec.openapis.org/oas/3.2/dialect/2025-09-17",
18+
"properties": {
19+
"$schema": {
20+
"$ref": "#/$defs/dialect"
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)