Skip to content

Commit

Permalink
schema.doc should be use=optional, re #14
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Oct 5, 2023
1 parent cbdca03 commit e5fa3b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion schema-0.4/schema-0.4.jsd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"properties": {
"doc": {
"jx:type": "string",
"doc": "Defines text comments. Optional."
"doc": "Defines text comments. Optional.",
"@nullable": false,
"@use": "optional"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion schema-0.4/schema-0.4.jsdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="nonEmptyString" pattern="\S|\S.*\S"/>

<object name="documented" abstract="true">
<property name="doc" xsi:type="string" doc="Defines text comments. Optional."/>
<property name="doc" xsi:type="string" use="optional" nullable="false" doc="Defines text comments. Optional."/>
</object>

<object name="member" abstract="true" extends="documented"/>
Expand Down
4 changes: 3 additions & 1 deletion schema-0.5/schema-0.5.jsd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
"@properties": {
"@doc": {
"@": "string",
"@doc": "Defines text comments. Optional."
"@doc": "Defines text comments. Optional.",
"@nullable": false,
"@use": "optional"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion schema-0.5/schema-0.5.jsdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<string name="schemaLocation" pattern="((\S|\S.*\S) (\S|\S.*\S))+"/>

<object name="documented" abstract="true">
<property name="@doc" xsi:type="string" doc="Defines text comments. Optional."/>
<property name="@doc" xsi:type="string" use="optional" nullable="false" doc="Defines text comments. Optional."/>
</object>

<object name="member" abstract="true" extends="documented"/>
Expand Down

0 comments on commit e5fa3b6

Please sign in to comment.