-
Notifications
You must be signed in to change notification settings - Fork 118
/
hateoas.xsd
60 lines (52 loc) · 2.56 KB
/
hateoas.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://github.com/willdurand/Hateoas"
xmlns:h="https://github.com/willdurand/Hateoas"
elementFormDefault="qualified">
<annotation>
<documentation><![CDATA[This is the XML Schema for the hateoas serialization]]></documentation>
</annotation>
<complexType name="class">
<sequence>
<element name="relation" type="h:relation" maxOccurs="unbounded"/>
</sequence>
<attribute name="providers" type="normalizedString" use="optional"/>
</complexType>
<complexType name="relation">
<sequence>
<element name="href" type="h:href" minOccurs="0"/>
<element name="embedded" type="h:embedded" minOccurs="0"/>
<element name="exclusion" type="h:exclusion" minOccurs="0" maxOccurs="unbounded"/>
<element name="attribute" type="h:attribute" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="rel" type="token" use="required"/>
</complexType>
<complexType name="attribute">
<attribute name="name" type="normalizedString" use="required"/>
<attribute name="value" type="normalizedString" use="required"/>
</complexType>
<complexType name="href">
<sequence>
<element name="parameter" type="h:attribute" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="uri" type="normalizedString" use="optional"/>
<attribute name="route" type="normalizedString" use="optional"/>
<attribute name="absolute" type="boolean" use="optional"/>
<attribute name="generator" type="normalizedString" use="optional"/>
</complexType>
<complexType name="embedded">
<sequence>
<element name="content" type="normalizedString"/>
<element name="exclusion" type="h:exclusion" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="xml-element-name" type="token" use="optional"/>
<attribute name="type" type="string" use="optional"/>
</complexType>
<complexType name="exclusion">
<attribute name="groups" type="normalizedString" use="optional"/>
<attribute name="since-version" type="normalizedString" use="optional"/>
<attribute name="until-version" type="normalizedString" use="optional"/>
<attribute name="max-depth" type="normalizedString" use="optional"/>
<attribute name="exclude-if" type="normalizedString" use="optional"/>
</complexType>
</schema>