Skip to content

Commit

Permalink
Add simple recursive Schema for Issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed Nov 3, 2015
1 parent 9cdb797 commit 1741cb0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/json/schema_recursive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"definitions": {
"recursive": {
"required": [ "node" ],
"type": "object",
"properties": {
"node": {
"$ref": "#/definitions/recursive"
}
}
}
},
"$ref": "#/definitions/recursive"
}
11 changes: 11 additions & 0 deletions test/xsd/schema_recursive.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" ?>
<xs:schema>
>
<xs:element name="node" type="recursive" />

<xs:complexType name="recursive">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="node" type="recursive" />
</xs:sequence>
</xs:complexType>
</xs:schema>

0 comments on commit 1741cb0

Please sign in to comment.