Skip to content

Commit 1b2067b

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 7ad6c8f commit 1b2067b

File tree

4 files changed

+1597
-0
lines changed

4 files changed

+1597
-0
lines changed

oas/3.2/dialect/2025-02-17

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.2/dialect/2025-02-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-02-17"
23+
}
24+
]
25+
}

oas/3.2/meta/2025-02-17

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.2/meta/2025-02-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": 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+
"attribute": {
72+
"type": "boolean"
73+
},
74+
"name": {
75+
"type": "string"
76+
},
77+
"namespace": {
78+
"format": "uri",
79+
"type": "string"
80+
},
81+
"prefix": {
82+
"type": "string"
83+
},
84+
"wrapped": {
85+
"type": "boolean"
86+
}
87+
},
88+
"type": "object",
89+
"unevaluatedProperties": false
90+
}
91+
}
92+
}

oas/3.2/schema-base/2025-03-27

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

0 commit comments

Comments
 (0)