Skip to content

Commit 6215119

Browse files
committed
Add XML Object schema tests
1 parent f6a083c commit 6215119

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

tests/schema/pass/media-type-examples.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,26 @@ paths:
3030
breed: Mixed
3131
frog:
3232
$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
3353
application/x-www-form-urlencoded:
3454
schema:
3555
type: object
@@ -94,4 +114,4 @@ paths:
94114
allowReserved: true
95115
forCoverage2:
96116
style: spaceDelimited
97-
explode: true
117+
explode: true

0 commit comments

Comments
 (0)