Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSD Validate - name attributes must not have whitespace #652

Merged
merged 1 commit into from
May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions generator/mavschema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

<!-- definition of attributes -->
<xs:attribute name="name"> <!-- used in enum,entry,message,field elements -->
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[\w_]+"/> <!-- Force only word characters in names (a-zA-Z0-9_ and many unicode). No whitespace -->
</xs:restriction>
</xs:simpleType>

</xs:attribute>
<xs:attribute name="id" type="mavlinkMsgId"/> <!-- used in message elements -->
<xs:attribute name="print_format" type="xs:string"/> <!-- used in field elements -->
Expand Down