Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/serializer/Mapping/Loader/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?xml version="1.0" ?> | |
2 | |
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"> | |
7 | |
8 <xsd:annotation> | |
9 <xsd:documentation><![CDATA[ | |
10 Symfony Serializer Mapping Schema, version 1.0 | |
11 Authors: Kévin Dunglas | |
12 | |
13 A serializer mapping connects attributes with serialization groups. | |
14 ]]></xsd:documentation> | |
15 </xsd:annotation> | |
16 | |
17 <xsd:element name="serializer" type="serializer" /> | |
18 | |
19 <xsd:complexType name="serializer"> | |
20 <xsd:annotation> | |
21 <xsd:documentation><![CDATA[ | |
22 The root element of the serializer mapping definition. | |
23 ]]></xsd:documentation> | |
24 </xsd:annotation> | |
25 <xsd:choice minOccurs="0" maxOccurs="unbounded"> | |
26 <xsd:element name="class" type="class" /> | |
27 </xsd:choice> | |
28 </xsd:complexType> | |
29 | |
30 <xsd:complexType name="class"> | |
31 <xsd:annotation> | |
32 <xsd:documentation><![CDATA[ | |
33 Contains serialization groups for a single class. | |
34 | |
35 Nested elements may be class property and/or getter definitions. | |
36 ]]></xsd:documentation> | |
37 </xsd:annotation> | |
38 <xsd:choice minOccurs="0" maxOccurs="unbounded"> | |
39 <xsd:element name="attribute" type="attribute" minOccurs="0" maxOccurs="unbounded" /> | |
40 </xsd:choice> | |
41 <xsd:attribute name="name" type="xsd:string" use="required" /> | |
42 </xsd:complexType> | |
43 | |
44 <xsd:complexType name="attribute"> | |
45 <xsd:annotation> | |
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> | |
49 </xsd:annotation> | |
50 <xsd:sequence minOccurs="0"> | |
51 <xsd:element name="group" type="xsd:string" maxOccurs="unbounded" /> | |
52 </xsd:sequence> | |
53 <xsd:attribute name="name" type="xsd:string" use="required" /> | |
54 <xsd:attribute name="max-depth"> | |
55 <xsd:simpleType> | |
56 <xsd:restriction base="xsd:integer"> | |
57 <xsd:minInclusive value="0" /> | |
58 </xsd:restriction> | |
59 </xsd:simpleType> | |
60 </xsd:attribute> | |
61 </xsd:complexType> | |
62 | |
63 </xsd:schema> |