-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2509 from jdesrosiers/gh-pages
Make 3.1 schemas retrievable from their $ids
- Loading branch information
Showing
4 changed files
with
1,464 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$id": "https://spec.openapis.org/oas/3.1/dialect/base", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$vocabulary": { | ||
"https://json-schema.org/draft/2020-12/vocab/core": true, | ||
"https://json-schema.org/draft/2020-12/vocab/applicator": true, | ||
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true, | ||
"https://json-schema.org/draft/2020-12/vocab/validation": true, | ||
"https://json-schema.org/draft/2020-12/vocab/meta-data": true, | ||
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true, | ||
"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" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$id": "https://spec.openapis.org/oas/3.1/meta/base", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$vocabulary": { | ||
"https://spec.openapis.org/oas/3.1/vocab/base": true | ||
}, | ||
"$dynamicAnchor": "meta", | ||
"title": "OAS Base vocabulary", | ||
|
||
"type": ["object", "boolean"], | ||
"properties": { | ||
"example": true, | ||
"discriminator": { "$ref": "#/$defs/discriminator" }, | ||
"externalDocs": { "$ref": "#/$defs/external-docs" }, | ||
"xml": { "$ref": "#/$defs/xml" } | ||
}, | ||
"$defs": { | ||
"extensible": { | ||
"patternProperties": { | ||
"^x-": true | ||
} | ||
}, | ||
"discriminator": { | ||
"$ref": "#/$defs/extensible", | ||
"type": "object", | ||
"properties": { | ||
"propertyName": { | ||
"type": "string" | ||
}, | ||
"mapping": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": ["propertyName"], | ||
"unevaluatedProperties": false | ||
}, | ||
"external-docs": { | ||
"$ref": "#/$defs/extensible", | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"format": "uri-reference" | ||
}, | ||
"description": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["url"], | ||
"unevaluatedProperties": false | ||
}, | ||
"xml": { | ||
"$ref": "#/$defs/extensible", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"prefix": { | ||
"type": "string" | ||
}, | ||
"attribute": { | ||
"type": "boolean" | ||
}, | ||
"wrapped": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"unevaluatedProperties": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2021-03-02", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$ref": "https://spec.openapis.org/oas/3.1/schema/2021-03-02", | ||
"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" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.