Skip to content

Commit

Permalink
XDS: clarify the definition of the optional attribute in relation to …
Browse files Browse the repository at this point in the history
…minOccurs for fields and groups
  • Loading branch information
woutdenolf committed Nov 23, 2024
1 parent 5b6daa0 commit 80b508f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nxdl.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ https://stackoverflow.com/a/48980995/1046449 -->
<xs:attribute name="optional" use="optional" type="nx:NX_BOOLEAN" default="false" >
<xs:annotation>
<xs:documentation>
A synonym for minOccurs=0.
The value "true" is equivalent to minOccurs=0 while the value
"false" is equivalent to minOccurs>0.
</xs:documentation>
</xs:annotation>
</xs:attribute>
Expand Down Expand Up @@ -837,7 +838,8 @@ https://stackoverflow.com/a/48980995/1046449 -->
<xs:attribute name="optional" use="optional" type="nx:NX_BOOLEAN" default="false" >
<xs:annotation>
<xs:documentation>
A synonym for minOccurs=0.
The value "true" is equivalent to minOccurs=0 while the value
"false" is equivalent to minOccurs>0.
</xs:documentation>
</xs:annotation>
</xs:attribute>
Expand Down

0 comments on commit 80b508f

Please sign in to comment.