Chris@0
|
1 <?xml version="1.0" ?>
|
Chris@0
|
2
|
Chris@0
|
3 <xsd:schema xmlns="http://symfony.com/schema/dic/serializer-mapping"
|
Chris@0
|
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
Chris@0
|
5 targetNamespace="http://symfony.com/schema/dic/serializer-mapping"
|
Chris@0
|
6 elementFormDefault="qualified">
|
Chris@0
|
7
|
Chris@0
|
8 <xsd:annotation>
|
Chris@0
|
9 <xsd:documentation><![CDATA[
|
Chris@0
|
10 Symfony Serializer Mapping Schema, version 1.0
|
Chris@0
|
11 Authors: Kévin Dunglas
|
Chris@0
|
12
|
Chris@0
|
13 A serializer mapping connects attributes with serialization groups.
|
Chris@0
|
14 ]]></xsd:documentation>
|
Chris@0
|
15 </xsd:annotation>
|
Chris@0
|
16
|
Chris@0
|
17 <xsd:element name="serializer" type="serializer" />
|
Chris@0
|
18
|
Chris@0
|
19 <xsd:complexType name="serializer">
|
Chris@0
|
20 <xsd:annotation>
|
Chris@0
|
21 <xsd:documentation><![CDATA[
|
Chris@0
|
22 The root element of the serializer mapping definition.
|
Chris@0
|
23 ]]></xsd:documentation>
|
Chris@0
|
24 </xsd:annotation>
|
Chris@0
|
25 <xsd:choice minOccurs="0" maxOccurs="unbounded">
|
Chris@0
|
26 <xsd:element name="class" type="class" />
|
Chris@0
|
27 </xsd:choice>
|
Chris@0
|
28 </xsd:complexType>
|
Chris@0
|
29
|
Chris@0
|
30 <xsd:complexType name="class">
|
Chris@0
|
31 <xsd:annotation>
|
Chris@0
|
32 <xsd:documentation><![CDATA[
|
Chris@0
|
33 Contains serialization groups for a single class.
|
Chris@0
|
34
|
Chris@0
|
35 Nested elements may be class property and/or getter definitions.
|
Chris@0
|
36 ]]></xsd:documentation>
|
Chris@0
|
37 </xsd:annotation>
|
Chris@0
|
38 <xsd:choice minOccurs="0" maxOccurs="unbounded">
|
Chris@0
|
39 <xsd:element name="attribute" type="attribute" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
40 </xsd:choice>
|
Chris@0
|
41 <xsd:attribute name="name" type="xsd:string" use="required" />
|
Chris@0
|
42 </xsd:complexType>
|
Chris@0
|
43
|
Chris@0
|
44 <xsd:complexType name="attribute">
|
Chris@0
|
45 <xsd:annotation>
|
Chris@0
|
46 <xsd:documentation><![CDATA[
|
Chris@0
|
47 Contains serialization groups and max depth for attributes. The name of the attribute should be given in the "name" option.
|
Chris@0
|
48 ]]></xsd:documentation>
|
Chris@0
|
49 </xsd:annotation>
|
Chris@0
|
50 <xsd:sequence minOccurs="0">
|
Chris@0
|
51 <xsd:element name="group" type="xsd:string" maxOccurs="unbounded" />
|
Chris@0
|
52 </xsd:sequence>
|
Chris@0
|
53 <xsd:attribute name="name" type="xsd:string" use="required" />
|
Chris@0
|
54 <xsd:attribute name="max-depth">
|
Chris@0
|
55 <xsd:simpleType>
|
Chris@0
|
56 <xsd:restriction base="xsd:integer">
|
Chris@0
|
57 <xsd:minInclusive value="0" />
|
Chris@0
|
58 </xsd:restriction>
|
Chris@0
|
59 </xsd:simpleType>
|
Chris@0
|
60 </xsd:attribute>
|
Chris@0
|
61 </xsd:complexType>
|
Chris@0
|
62
|
Chris@0
|
63 </xsd:schema>
|