Skip to content

Commit

Permalink
Add xs:element/xs:complexType test for #8
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed Feb 7, 2015
1 parent 4177982 commit 6d35afe
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/json/schema5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"description": "Some annotation.",
"type": "object",
"properties": {
"two": {
"type": "string"
},
"three": {
"type": "string"
}
}
}
17 changes: 17 additions & 0 deletions test/xsd/schema5.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema>
<xs:element name="one">
<xs:complexType>
<xs:annotation>
<xs:documentation>
Some annotation.
</xs:documentation>
</xs:annotation>

<xs:all>
<xs:element name="two" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="three" type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit 6d35afe

Please sign in to comment.