Last active
September 20, 2018 18:15
-
-
Save kamalgill/14dc00c43c3a75cde2f1222394b48c85 to your computer and use it in GitHub Desktop.
AWS S3 CORS XML RelaxNG schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<element name="CORSConfiguration" xmlns="http://relaxng.org/ns/structure/1.0"> | |
<oneOrMore> | |
<element name="CORSRule"> | |
<interleave> | |
<oneOrMore> | |
<element name="AllowedOrigin"><text /></element> | |
</oneOrMore> | |
<oneOrMore> | |
<element name="AllowedMethod"> | |
<choice> | |
<value>GET</value> | |
<value>PUT</value> | |
<value>POST</value> | |
<value>DELETE</value> | |
<value>HEAD</value> | |
</choice> | |
</element> | |
</oneOrMore> | |
<zeroOrMore> | |
<element name="AllowedHeader"><text /></element> | |
</zeroOrMore> | |
<zeroOrMore> | |
<element name="ExposeHeader"><text /></element> | |
</zeroOrMore> | |
<optional> | |
<element name="MaxAgeSeconds"> | |
<data type="nonNegativeInteger" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/> | |
</element> | |
</optional> | |
<optional> | |
<element name="ID"><text /></element> | |
</optional> | |
</interleave> | |
</element> | |
</oneOrMore> | |
</element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the feedback Lincoln! I've updated the schema to add the optional ID element, and I modified the MaxAgeSeconds datatype from integer to nonNegativeInteger