Giter VIP home page Giter VIP logo

schemas's People

Contributors

horazont avatar kev avatar linuxwolf avatar ppjet6 avatar samwhited avatar stpeter avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

schemas's Issues

Pull up annotation in restirction

It seems that xs:annotation should be the first element in xs:restriction.

<restriction
  base = QName
  id = ID
  {any attributes with non-schema namespace . . .}>
  Content: (annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern | assertion | explicitTimezone | {any with namespace: ##other})*))
</restriction>

https://github.com/xsf/schemas/blob/master/jingle-apps-dtls.xsd#L28-L32

Add the empty simpleType into XSDs

It seems these two XSDs suffered from the missing empty type.

diff --git a/jingle-apps-rtp-rtcp-fb.xsd b/jingle-apps-rtp-rtcp-fb.xsd
index 6682a10..b46a2c2 100644
--- a/jingle-apps-rtp-rtcp-fb.xsd
+++ b/jingle-apps-rtp-rtcp-fb.xsd
@@ -43,4 +43,10 @@
     </xs:simpleContent>
   </xs:complexType>
 
+  <xs:simpleType name='empty'>
+    <xs:restriction base='xs:string'>
+      <xs:enumeration value=''/>
+    </xs:restriction>
+  </xs:simpleType>
+
 </xs:schema>
diff --git a/jingle-apps-rtp-rtp-hdrext.xsd b/jingle-apps-rtp-rtp-hdrext.xsd
index 9b7a761..53c122f 100644
--- a/jingle-apps-rtp-rtp-hdrext.xsd
+++ b/jingle-apps-rtp-rtp-hdrext.xsd
@@ -45,4 +45,10 @@
     </xs:simpleContent>
   </xs:complexType>
 
+  <xs:simpleType name='empty'>
+    <xs:restriction base='xs:string'>
+      <xs:enumeration value=''/>
+    </xs:restriction>
+  </xs:simpleType>
+
 </xs:schema>

Fix prematually closed attribute

It seems that an xs:attribute prematurely closed itself.

See
https://github.com/xsf/schemas/blob/master/jingle-apps-dtls.xsd#L21-L35

AS-IS

          <xs:attribute name='setup' use='required'/> <!-- shouldn't close itself -->
            <xs:simpleType>
              <xs:restriction base='xs:NCName'>
                <xs:enumeration value='active'/>
                <xs:enumeration value='passive'/>
                <xs:enumeration value='actpass'/>
                <xs:enumeration value='holdconn'/>
                <xs:annotation>
                  <xs:documentation>
                    the 'holdconn' value is not used and included only for completeness.
                  </xs:documentation>
                </xs:annotation>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>

TO-BE

          <xs:attribute name='setup' use='required'>
            <xs:simpleType>
              <xs:restriction base='xs:NCName'>
                <xs:enumeration value='active'/>
                <xs:enumeration value='passive'/>
                <xs:enumeration value='actpass'/>
                <xs:enumeration value='holdconn'/>
                <xs:annotation>
                  <xs:documentation>
                    the 'holdconn' value is not used and included only for completeness.
                  </xs:documentation>
                </xs:annotation>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.