Skip to content

Commit c7f0c47

Browse files
committed
Add positive schema tests for XML nodeType
1 parent 373a374 commit c7f0c47

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
@@ -53,6 +53,26 @@ paths:
5353
type: string
5454
xml:
5555
attribute: true
56+
elementNode:
57+
$ref: "#/components/schemas/Pet"
58+
xml:
59+
nodeType: element
60+
attributeNode:
61+
type: string
62+
xml:
63+
nodeType: attribute
64+
textNode:
65+
type: string
66+
xml:
67+
nodeType: text
68+
cdataNode:
69+
type: string
70+
xml:
71+
nodeType: cdata
72+
noneNode:
73+
type: object
74+
xml:
75+
nodeType: none
5676
application/x-www-form-urlencoded:
5777
schema:
5878
type: object

0 commit comments

Comments
 (0)