File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ openapi : 3.2.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.2/dialect/WORK-IN-PROGRESS
10
+ components :
11
+ schemas :
12
+ WithDollarSchema :
13
+ $id : " locked-metaschema"
14
+ $schema : https://spec.openapis.org/oas/3.2/dialect/WORK-IN-PROGRESS
15
+ paths : {}
Original file line number Diff line number Diff line change @@ -33,6 +33,26 @@ paths:
33
33
application/jsonl :
34
34
itemSchema :
35
35
$ref : ' #components/schemas/Pet'
36
+ application/xml :
37
+ schema :
38
+ type : object
39
+ properties :
40
+ foo :
41
+ type : string
42
+ xml :
43
+ namespace : https://example.com
44
+ prefix : example
45
+ name : Foo
46
+ bar :
47
+ type : array
48
+ items :
49
+ type : number
50
+ xml :
51
+ wrapped : true
52
+ attr :
53
+ type : string
54
+ xml :
55
+ attribute : true
36
56
application/x-www-form-urlencoded :
37
57
schema :
38
58
type : object
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