Skip to content

Commit

Permalink
MavSchema: Allow 64-bit enum bitmask values
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 committed Feb 1, 2024
1 parent 55fcf4d commit 8c8f07e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions generator/mavschema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
<xs:attribute name="value"> <!-- used in entry elements -->
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\d{1,10}"/> <!-- base 10 int -->
<xs:pattern value="0[xX][0-9a-fA-F]{1,8}"/> <!-- base 16 -->
<xs:pattern value="0[bB][0-1]{1,32}"/> <!-- base 1 -->
<xs:pattern value="\d{1,20}"/> <!-- base 10 int -->
<xs:pattern value="0[xX][0-9a-fA-F]{1,16}"/> <!-- base 16 -->
<xs:pattern value="0[bB][0-1]{1,64}"/> <!-- base 1 -->
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="default"> <!-- used in enum field elements -->
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\d{1,10}"/> <!-- base 10 int -->
<xs:pattern value="0[xX][0-9a-fA-F]{1,8}"/> <!-- base 16 -->
<xs:pattern value="0[bB][0-1]{1,32}"/> <!-- base 1 -->
<xs:pattern value="\d{1,20}"/> <!-- base 10 int -->
<xs:pattern value="0[xX][0-9a-fA-F]{1,16}"/> <!-- base 16 -->
<xs:pattern value="0[bB][0-1]{1,64}"/> <!-- base 1 -->
<xs:pattern value="NaN"/> <!-- Allow not-a-number as a default (for params) -->
</xs:restriction>
</xs:simpleType>
Expand Down

0 comments on commit 8c8f07e

Please sign in to comment.