Skip to content

Commit

Permalink
XSD schema for XML mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
yivi committed Nov 22, 2022
1 parent 4385a87 commit 258ec1c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions vich_uploader.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<xs:schema
attributeFormDefault="unqualified"
elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://vich-uploader-bundle/schema/"
>
<xs:element name="vich_uploader">
<xs:complexType>

<xs:sequence>

<xs:element name="field">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="name" use="required"/>
<xs:attribute type="xs:string" name="mapping" use="required"/>
<xs:attribute type="xs:string" name="filename_property" use="required"/>
<xs:attribute type="xs:string" name="size"/>
<xs:attribute type="xs:string" name="dimensions"/>
<xs:attribute type="xs:string" name="mime_type"/>
<xs:attribute type="xs:string" name="original_name"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>

<xs:attribute type="xs:string" name="class" use="required"/>

</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit 258ec1c

Please sign in to comment.