Skip to content

Commit 17ed07c

Browse files
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
1 parent 92df7ca commit 17ed07c

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

schemas/v3.1/dialect/base.schema.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
$dynamicAnchor: meta
3+
$id: https://spec.openapis.org/oas/3.1/dialect/base
4+
$schema: https://json-schema.org/draft/2020-12/schema
5+
$vocabulary:
6+
https://json-schema.org/draft/2020-12/vocab/applicator: true
7+
https://json-schema.org/draft/2020-12/vocab/content: true
8+
https://json-schema.org/draft/2020-12/vocab/core: true
9+
https://json-schema.org/draft/2020-12/vocab/format-annotation: true
10+
https://json-schema.org/draft/2020-12/vocab/meta-data: 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://spec.openapis.org/oas/3.1/vocab/base: false
14+
allOf:
15+
- $ref: https://json-schema.org/draft/2020-12/schema
16+
- $ref: https://spec.openapis.org/oas/3.1/meta/base
17+
title: OpenAPI 3.1 Schema Object Dialect

schemas/v3.1/meta/base.schema.yaml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
$defs:
3+
discriminator:
4+
$ref: '#/$defs/extensible'
5+
properties:
6+
mapping:
7+
additionalProperties:
8+
type: string
9+
type: object
10+
propertyName:
11+
type: string
12+
required:
13+
- propertyName
14+
type: object
15+
unevaluatedProperties: false
16+
extensible:
17+
patternProperties:
18+
^x-: true
19+
external-docs:
20+
$ref: '#/$defs/extensible'
21+
properties:
22+
description:
23+
type: string
24+
url:
25+
format: uri-reference
26+
type: string
27+
required:
28+
- url
29+
type: object
30+
unevaluatedProperties: false
31+
xml:
32+
$ref: '#/$defs/extensible'
33+
properties:
34+
attribute:
35+
type: boolean
36+
name:
37+
type: string
38+
namespace:
39+
format: uri
40+
type: string
41+
prefix:
42+
type: string
43+
wrapped:
44+
type: boolean
45+
type: object
46+
unevaluatedProperties: false
47+
$dynamicAnchor: meta
48+
$id: https://spec.openapis.org/oas/3.1/meta/base
49+
$schema: https://json-schema.org/draft/2020-12/schema
50+
$vocabulary:
51+
https://spec.openapis.org/oas/3.1/vocab/base: true
52+
properties:
53+
discriminator:
54+
$ref: '#/$defs/discriminator'
55+
example: true
56+
externalDocs:
57+
$ref: '#/$defs/external-docs'
58+
xml:
59+
$ref: '#/$defs/xml'
60+
title: OAS Base vocabulary
61+
type:
62+
- object
63+
- boolean

0 commit comments

Comments
 (0)