-
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.
Generate YAML versions of these schema documents (#2669)
generated via: perl -MYAML::XS -MJSON::MaybeXS -we'$YAML::XS::Boolean="JSON::PP"; print Dump(JSON::MaybeXS->new->decode(do { local $/; <> }))' input.json > output.yaml
- Loading branch information
1 parent
92df7ca
commit 17ed07c
Showing
2 changed files
with
80 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,17 @@ | ||
--- | ||
$dynamicAnchor: meta | ||
$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/applicator: true | ||
https://json-schema.org/draft/2020-12/vocab/content: true | ||
https://json-schema.org/draft/2020-12/vocab/core: true | ||
https://json-schema.org/draft/2020-12/vocab/format-annotation: true | ||
https://json-schema.org/draft/2020-12/vocab/meta-data: true | ||
https://json-schema.org/draft/2020-12/vocab/unevaluated: true | ||
https://json-schema.org/draft/2020-12/vocab/validation: true | ||
https://spec.openapis.org/oas/3.1/vocab/base: false | ||
allOf: | ||
- $ref: https://json-schema.org/draft/2020-12/schema | ||
- $ref: https://spec.openapis.org/oas/3.1/meta/base | ||
title: OpenAPI 3.1 Schema Object Dialect |
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,63 @@ | ||
--- | ||
$defs: | ||
discriminator: | ||
$ref: '#/$defs/extensible' | ||
properties: | ||
mapping: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
propertyName: | ||
type: string | ||
required: | ||
- propertyName | ||
type: object | ||
unevaluatedProperties: false | ||
extensible: | ||
patternProperties: | ||
^x-: true | ||
external-docs: | ||
$ref: '#/$defs/extensible' | ||
properties: | ||
description: | ||
type: string | ||
url: | ||
format: uri-reference | ||
type: string | ||
required: | ||
- url | ||
type: object | ||
unevaluatedProperties: false | ||
xml: | ||
$ref: '#/$defs/extensible' | ||
properties: | ||
attribute: | ||
type: boolean | ||
name: | ||
type: string | ||
namespace: | ||
format: uri | ||
type: string | ||
prefix: | ||
type: string | ||
wrapped: | ||
type: boolean | ||
type: object | ||
unevaluatedProperties: false | ||
$dynamicAnchor: meta | ||
$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 | ||
properties: | ||
discriminator: | ||
$ref: '#/$defs/discriminator' | ||
example: true | ||
externalDocs: | ||
$ref: '#/$defs/external-docs' | ||
xml: | ||
$ref: '#/$defs/xml' | ||
title: OAS Base vocabulary | ||
type: | ||
- object | ||
- boolean |