Allow port=0 in XSD

Issue gh-8138
This commit is contained in:
Josh Cummings 2020-03-18 08:23:04 -06:00
parent f438bdfbcf
commit 4d99ee2896
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ request-matcher =
attribute request-matcher {"mvc" | "ant" | "regex" | "ciRegex"} attribute request-matcher {"mvc" | "ant" | "regex" | "ciRegex"}
port = port =
## Specifies an IP port number. Used to configure an embedded LDAP server, for example. ## Specifies an IP port number. Used to configure an embedded LDAP server, for example.
attribute port { xsd:positiveInteger } attribute port { xsd:nonNegativeInteger }
url = url =
## Specifies a URL. ## Specifies a URL.
attribute url { xsd:token } attribute url { xsd:token }

View File

@ -43,7 +43,7 @@
</xs:attribute> </xs:attribute>
</xs:attributeGroup> </xs:attributeGroup>
<xs:attributeGroup name="port"> <xs:attributeGroup name="port">
<xs:attribute name="port" use="required" type="xs:positiveInteger"> <xs:attribute name="port" use="required" type="xs:nonNegativeInteger">
<xs:annotation> <xs:annotation>
<xs:documentation>Specifies an IP port number. Used to configure an embedded LDAP server, for example. <xs:documentation>Specifies an IP port number. Used to configure an embedded LDAP server, for example.
</xs:documentation> </xs:documentation>
@ -190,7 +190,7 @@
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="port" type="xs:positiveInteger"> <xs:attribute name="port" type="xs:nonNegativeInteger">
<xs:annotation> <xs:annotation>
<xs:documentation>Specifies an IP port number. Used to configure an embedded LDAP server, for example. <xs:documentation>Specifies an IP port number. Used to configure an embedded LDAP server, for example.
</xs:documentation> </xs:documentation>