Skip to content

Commit 2ac4417

Browse files
authored
Add version 2022-02-27 of v3.1 schemas (#2889)
1 parent 68ed2e4 commit 2ac4417

File tree

7 files changed

+1460
-5
lines changed

7 files changed

+1460
-5
lines changed

oas/3.0/schema/2021-09-28

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "https://spec.openapis.org/oas/3.0/schema/2021-09-28",
33
"$schema": "http://json-schema.org/draft-04/schema#",
4-
"description": "Validation schema for OpenAPI Specification 3.0.X.",
4+
"description": "The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",
55
"type": "object",
66
"required": [
77
"openapi",

oas/3.1/dialect/base

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"$id": "https://spec.openapis.org/oas/3.1/dialect/base",
33
"$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+
48
"$vocabulary": {
59
"https://json-schema.org/draft/2020-12/vocab/core": true,
610
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
@@ -11,9 +15,9 @@
1115
"https://json-schema.org/draft/2020-12/vocab/content": true,
1216
"https://spec.openapis.org/oas/3.1/vocab/base": false
1317
},
18+
1419
"$dynamicAnchor": "meta",
1520

16-
"title": "OpenAPI 3.1 Schema Object Dialect",
1721
"allOf": [
1822
{ "$ref": "https://json-schema.org/draft/2020-12/schema" },
1923
{ "$ref": "https://spec.openapis.org/oas/3.1/meta/base" }

oas/3.1/meta/base

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
"$id": "https://spec.openapis.org/oas/3.1/meta/base",
33
"$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+
48
"$vocabulary": {
59
"https://spec.openapis.org/oas/3.1/vocab/base": true
610
},
11+
712
"$dynamicAnchor": "meta",
8-
"title": "OAS Base vocabulary",
913

1014
"type": ["object", "boolean"],
1115
"properties": {
@@ -14,12 +18,14 @@
1418
"externalDocs": { "$ref": "#/$defs/external-docs" },
1519
"xml": { "$ref": "#/$defs/xml" }
1620
},
21+
1722
"$defs": {
1823
"extensible": {
1924
"patternProperties": {
2025
"^x-": true
2126
}
2227
},
28+
2329
"discriminator": {
2430
"$ref": "#/$defs/extensible",
2531
"type": "object",
@@ -37,6 +43,7 @@
3743
"required": ["propertyName"],
3844
"unevaluatedProperties": false
3945
},
46+
4047
"external-docs": {
4148
"$ref": "#/$defs/extensible",
4249
"type": "object",
@@ -52,6 +59,7 @@
5259
"required": ["url"],
5360
"unevaluatedProperties": false
5461
},
62+
5563
"xml": {
5664
"$ref": "#/$defs/extensible",
5765
"type": "object",

oas/3.1/schema-base/2022-02-27

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-02-27",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
5+
"description": "The description of OpenAPI v3.1.x documents using the OpenAPI JSON Schema dialect, as defined by https://spec.openapis.org/oas/v3.1.0",
6+
7+
"$ref": "https://spec.openapis.org/oas/3.1/schema/2022-02-27",
8+
"properties": {
9+
"jsonSchemaDialect": { "$ref": "#/$defs/dialect" }
10+
},
11+
12+
"$defs": {
13+
"dialect": { "const": "https://spec.openapis.org/oas/3.1/dialect/base" },
14+
15+
"schema": {
16+
"$dynamicAnchor": "meta",
17+
"$ref": "https://spec.openapis.org/oas/3.1/dialect/base",
18+
"properties": {
19+
"$schema": { "$ref": "#/$defs/dialect" }
20+
}
21+
}
22+
}
23+
}

oas/3.1/schema-base/latest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-09-28
1+
2022-02-27

0 commit comments

Comments
 (0)