File tree Expand file tree Collapse file tree 3 files changed +49
-2
lines changed Expand file tree Collapse file tree 3 files changed +49
-2
lines changed Original file line number Diff line number Diff line change
1
+ openapi : 3.1.0
2
+ info :
3
+ summary : Testing jsonSchemaDialect
4
+ title : My API
5
+ version : 1.0.0
6
+ license :
7
+ name : Apache 2.0
8
+ identifier : Apache-2.0
9
+ jsonSchemaDialect : https://spec.openapis.org/oas/3.1/dialect/WORK-IN-PROGRESS
10
+ components :
11
+ schemas :
12
+ WithDollarSchema :
13
+ $id : " locked-metaschema"
14
+ $schema : https://spec.openapis.org/oas/3.1/dialect/WORK-IN-PROGRESS
15
+ paths : {}
Original file line number Diff line number Diff line change @@ -30,6 +30,26 @@ paths:
30
30
breed : Mixed
31
31
frog :
32
32
$ref : ' #/components/examples/frog-example'
33
+ application/xml :
34
+ schema :
35
+ type : object
36
+ properties :
37
+ foo :
38
+ type : string
39
+ xml :
40
+ namespace : https://example.com
41
+ prefix : example
42
+ name : Foo
43
+ bar :
44
+ type : array
45
+ items :
46
+ type : number
47
+ xml :
48
+ wrapped : true
49
+ attr :
50
+ type : string
51
+ xml :
52
+ attribute : true
33
53
application/x-www-form-urlencoded :
34
54
schema :
35
55
type : object
@@ -94,4 +114,4 @@ paths:
94
114
allowReserved : true
95
115
forCoverage2 :
96
116
style : spaceDelimited
97
- explode : true
117
+ explode : true
Original file line number Diff line number Diff line change 6
6
license :
7
7
name : Apache 2.0
8
8
identifier : Apache-2.0
9
- jsonSchemaDialect : https://spec.openapis.org/oas/3.1/dialect/base
10
9
paths :
11
10
/ :
12
11
get :
@@ -20,6 +19,12 @@ components:
20
19
securitySchemes :
21
20
mtls :
22
21
type : mutualTLS
22
+ schemas :
23
+ Foo :
24
+ type : object
25
+ properties :
26
+ type :
27
+ const : foo
23
28
pathItems :
24
29
myPathItem :
25
30
post :
@@ -28,6 +33,9 @@ components:
28
33
content :
29
34
' application/json ' :
30
35
schema :
36
+ externalDocs :
37
+ description : More docs!
38
+ url : https://example.com/elsewhere.html
31
39
type : object
32
40
properties :
33
41
type :
@@ -45,5 +53,9 @@ components:
45
53
type : ['string','null']
46
54
discriminator :
47
55
propertyName : type
56
+ mapping :
57
+ foo : Foo
48
58
x-extension : true
59
+ anyOf :
60
+ - $ref : " #/components/schemas/Foo"
49
61
myArbitraryKeyword : true
You can’t perform that action at this time.
0 commit comments