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"}
port =
## Specifies an IP port number. Used to configure an embedded LDAP server, for example.
attribute port { xsd:positiveInteger }
attribute port { xsd:nonNegativeInteger }
url =
## Specifies a URL.
attribute url { xsd:token }

View File

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