3 <xsd:schema xmlns="http://symfony.com/schema/dic/serializer-mapping"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5 targetNamespace="http://symfony.com/schema/dic/serializer-mapping"
6 elementFormDefault="qualified">
9 <xsd:documentation><![CDATA[
10 Symfony Serializer Mapping Schema, version 1.0
11 Authors: Kévin Dunglas
13 A serializer mapping connects attributes with serialization groups.
14 ]]></xsd:documentation>
17 <xsd:element name="serializer" type="serializer" />
19 <xsd:complexType name="serializer">
21 <xsd:documentation><![CDATA[
22 The root element of the serializer mapping definition.
23 ]]></xsd:documentation>
25 <xsd:choice minOccurs="0" maxOccurs="unbounded">
26 <xsd:element name="class" type="class" />
30 <xsd:complexType name="class">
32 <xsd:documentation><![CDATA[
33 Contains serialization groups for a single class.
35 Nested elements may be class property and/or getter definitions.
36 ]]></xsd:documentation>
38 <xsd:choice minOccurs="0" maxOccurs="unbounded">
39 <xsd:element name="attribute" type="attribute" minOccurs="0" maxOccurs="unbounded" />
41 <xsd:attribute name="name" type="xsd:string" use="required" />
44 <xsd:complexType name="attribute">
46 <xsd:documentation><![CDATA[
47 Contains serialization groups and max depth for attributes. The name of the attribute should be given in the "name" option.
48 ]]></xsd:documentation>
50 <xsd:sequence minOccurs="0">
51 <xsd:element name="group" type="xsd:string" maxOccurs="unbounded" />
53 <xsd:attribute name="name" type="xsd:string" use="required" />
54 <xsd:attribute name="max-depth">
56 <xsd:restriction base="xsd:integer">
57 <xsd:minInclusive value="0" />