checking in some xsd changes

This commit is contained in:
brent s. 2021-09-15 03:11:29 -04:00
parent 0193f78387
commit 0a23f7f7e4
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
2 changed files with 13 additions and 1 deletions

View File

@ -52,6 +52,18 @@
</xs:restriction>
</xs:simpleType>

<!-- https://semver.org/ -->
<!-- Not perfect; it's more permissible than official spec but will do nicely for basic check. -->
<!--
The XML pattern engine standard is... pretty limited but:
https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
-->
<xs:simpleType name="t_std_semver">
<xs:restriction base="xs:token">
<xs:pattern value="v?([1-9]+([0-9])*\.){2}\.[1-9]([0-9)*(-[.0-9A-Za-z-]+)?(\+[.0-9A-Za-z-]+)?"/>
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="t_std_uri">
<xs:restriction base="xs:anyURI">
<xs:pattern value="\s*(https?|ftps?|file)://.+\s*"/>

View File

@ -21,7 +21,7 @@
<!-- <xs:element ref="e_vaultpass_unsealselect" minOccurs="0" maxOccurs="1"/> -->
<xs:element name="unseal">
<xs:complexType>
<xs:choice minOccurs="1" maxOccurs="1">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="unsealGpg" type="t_vaultpass_star_gpg"/>
<xs:element name="unsealPlain" type="t_std_base64"/>
</xs:choice>