Skip to content

Commit 6ed2b90

Browse files
committed
update OpenAPI schemas
1 parent c3bff82 commit 6ed2b90

File tree

6 files changed

+1665
-0
lines changed

6 files changed

+1665
-0
lines changed
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.1/dialect/2024-11-10",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"title": "OpenAPI 3.1 Schema Object Dialect",
5+
"description": "A JSON Schema dialect describing schemas found in OpenAPI v3.1 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.1/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.1/meta/2024-11-10"
23+
}
24+
]
25+
}
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.1/dialect/base",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
5+
"title": "OpenAPI 3.1 Schema Object Dialect",
6+
"description": "A JSON Schema dialect describing schemas found in OpenAPI documents",
7+
8+
"$vocabulary": {
9+
"https://json-schema.org/draft/2020-12/vocab/core": true,
10+
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
11+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
12+
"https://json-schema.org/draft/2020-12/vocab/validation": true,
13+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
14+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
15+
"https://json-schema.org/draft/2020-12/vocab/content": true,
16+
"https://spec.openapis.org/oas/3.1/vocab/base": false
17+
},
18+
19+
"$dynamicAnchor": "meta",
20+
21+
"allOf": [
22+
{ "$ref": "https://json-schema.org/draft/2020-12/schema" },
23+
{ "$ref": "https://spec.openapis.org/oas/3.1/meta/base" }
24+
]
25+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.1/meta/2024-11-10",
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 Schema Dialect",
6+
"$dynamicAnchor": "meta",
7+
"$vocabulary": {
8+
"https://spec.openapis.org/oas/3.1/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+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.1/meta/base",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
5+
"title": "OAS Base vocabulary",
6+
"description": "A JSON Schema Vocabulary used in the OpenAPI Schema Dialect",
7+
8+
"$vocabulary": {
9+
"https://spec.openapis.org/oas/3.1/vocab/base": true
10+
},
11+
12+
"$dynamicAnchor": "meta",
13+
14+
"type": ["object", "boolean"],
15+
"properties": {
16+
"example": true,
17+
"discriminator": { "$ref": "#/$defs/discriminator" },
18+
"externalDocs": { "$ref": "#/$defs/external-docs" },
19+
"xml": { "$ref": "#/$defs/xml" }
20+
},
21+
22+
"$defs": {
23+
"extensible": {
24+
"patternProperties": {
25+
"^x-": true
26+
}
27+
},
28+
29+
"discriminator": {
30+
"$ref": "#/$defs/extensible",
31+
"type": "object",
32+
"properties": {
33+
"propertyName": {
34+
"type": "string"
35+
},
36+
"mapping": {
37+
"type": "object",
38+
"additionalProperties": {
39+
"type": "string"
40+
}
41+
}
42+
},
43+
"required": ["propertyName"],
44+
"unevaluatedProperties": false
45+
},
46+
47+
"external-docs": {
48+
"$ref": "#/$defs/extensible",
49+
"type": "object",
50+
"properties": {
51+
"url": {
52+
"type": "string",
53+
"format": "uri-reference"
54+
},
55+
"description": {
56+
"type": "string"
57+
}
58+
},
59+
"required": ["url"],
60+
"unevaluatedProperties": false
61+
},
62+
63+
"xml": {
64+
"$ref": "#/$defs/extensible",
65+
"type": "object",
66+
"properties": {
67+
"name": {
68+
"type": "string"
69+
},
70+
"namespace": {
71+
"type": "string",
72+
"format": "uri"
73+
},
74+
"prefix": {
75+
"type": "string"
76+
},
77+
"attribute": {
78+
"type": "boolean"
79+
},
80+
"wrapped": {
81+
"type": "boolean"
82+
}
83+
},
84+
"unevaluatedProperties": false
85+
}
86+
}
87+
}
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.1/schema-base/2025-09-15",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"description": "The description of OpenAPI v3.1.x Documents using the OpenAPI JSON Schema dialect",
5+
"$ref": "https://spec.openapis.org/oas/3.1/schema/2025-09-15",
6+
"properties": {
7+
"jsonSchemaDialect": {
8+
"$ref": "#/$defs/dialect"
9+
}
10+
},
11+
"$defs": {
12+
"dialect": {
13+
"const": "https://spec.openapis.org/oas/3.1/dialect/2024-11-10"
14+
},
15+
"schema": {
16+
"$dynamicAnchor": "meta",
17+
"$ref": "https://spec.openapis.org/oas/3.1/dialect/2024-11-10",
18+
"properties": {
19+
"$schema": {
20+
"$ref": "#/$defs/dialect"
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)