Skip to content

Commit 98ae842

Browse files
committed
Add XML Object schema tests
1 parent f9b0017 commit 98ae842

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ paths:
3333
application/jsonl:
3434
itemSchema:
3535
$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
3656
application/x-www-form-urlencoded:
3757
schema:
3858
type: object

0 commit comments

Comments
 (0)