Skip to content

Deploy version 2022-02-27 of v3.1 schemas #2889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oas/3.0/schema/2021-09-28
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "https://spec.openapis.org/oas/3.0/schema/2021-09-28",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Validation schema for OpenAPI Specification 3.0.X.",
"description": "The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",
"type": "object",
"required": [
"openapi",
Expand Down
6 changes: 5 additions & 1 deletion oas/3.1/dialect/base
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"$id": "https://spec.openapis.org/oas/3.1/dialect/base",
"$schema": "https://json-schema.org/draft/2020-12/schema",

"title": "OpenAPI 3.1 Schema Object Dialect",
"description": "A JSON Schema dialect describing schemas found in OpenAPI documents",

"$vocabulary": {
"https://json-schema.org/draft/2020-12/vocab/core": true,
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
Expand All @@ -11,9 +15,9 @@
"https://json-schema.org/draft/2020-12/vocab/content": true,
"https://spec.openapis.org/oas/3.1/vocab/base": false
},

"$dynamicAnchor": "meta",

"title": "OpenAPI 3.1 Schema Object Dialect",
"allOf": [
{ "$ref": "https://json-schema.org/draft/2020-12/schema" },
{ "$ref": "https://spec.openapis.org/oas/3.1/meta/base" }
Expand Down
10 changes: 9 additions & 1 deletion oas/3.1/meta/base
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"$id": "https://spec.openapis.org/oas/3.1/meta/base",
"$schema": "https://json-schema.org/draft/2020-12/schema",

"title": "OAS Base vocabulary",
"description": "A JSON Schema Vocabulary used in the OpenAPI Schema Dialect",

"$vocabulary": {
"https://spec.openapis.org/oas/3.1/vocab/base": true
},

"$dynamicAnchor": "meta",
"title": "OAS Base vocabulary",

"type": ["object", "boolean"],
"properties": {
Expand All @@ -14,12 +18,14 @@
"externalDocs": { "$ref": "#/$defs/external-docs" },
"xml": { "$ref": "#/$defs/xml" }
},

"$defs": {
"extensible": {
"patternProperties": {
"^x-": true
}
},

"discriminator": {
"$ref": "#/$defs/extensible",
"type": "object",
Expand All @@ -37,6 +43,7 @@
"required": ["propertyName"],
"unevaluatedProperties": false
},

"external-docs": {
"$ref": "#/$defs/extensible",
"type": "object",
Expand All @@ -52,6 +59,7 @@
"required": ["url"],
"unevaluatedProperties": false
},

"xml": {
"$ref": "#/$defs/extensible",
"type": "object",
Expand Down
23 changes: 23 additions & 0 deletions oas/3.1/schema-base/2022-02-27
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-02-27",
"$schema": "https://json-schema.org/draft/2020-12/schema",

"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",

"$ref": "https://spec.openapis.org/oas/3.1/schema/2022-02-27",
"properties": {
"jsonSchemaDialect": { "$ref": "#/$defs/dialect" }
},

"$defs": {
"dialect": { "const": "https://spec.openapis.org/oas/3.1/dialect/base" },

"schema": {
"$dynamicAnchor": "meta",
"$ref": "https://spec.openapis.org/oas/3.1/dialect/base",
"properties": {
"$schema": { "$ref": "#/$defs/dialect" }
}
}
}
}
2 changes: 1 addition & 1 deletion oas/3.1/schema-base/latest
Loading