Skip to content

Commit

Permalink
Fix aadl_xml XSD for boolean property value type
Browse files Browse the repository at this point in the history
This commit adds a boolean property value type in the XSD for aadl_xml
to match the current design.

GitHub Issue #287 #300
  • Loading branch information
nvcyc authored and yoogx committed Aug 31, 2021
1 parent 40e07fc commit cbaf9eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/runtime/aadl_xml/aadl.xsd
Expand Up @@ -220,6 +220,7 @@
<xs:element name="number" type="unit_prop"/>
<xs:element name="range" type="range_prop"/>
<xs:element name="string" type="string_prop"/>
<xs:element name="boolean" type="boolean_prop"/>
<xs:element ref="record"/>
<xs:element ref="list"/>
</xs:choice>
Expand All @@ -234,6 +235,7 @@
<xs:element name="number" type="unit_prop"/>
<xs:element name="range" type="range_prop"/>
<xs:element name="string" type="string_prop"/>
<xs:element name="boolean" type="boolean_prop"/>
<xs:element ref="record"/>
<xs:element ref="list"/>
</xs:choice>
Expand Down Expand Up @@ -275,6 +277,10 @@
<xs:attribute name='value' type="xs:string" use='required'/>
</xs:complexType>

<xs:complexType name='boolean_prop'>
<xs:attribute name='value' type="xs:boolean" use='required'/>
</xs:complexType>

<xs:complexType name='reference_prop'>
<xs:attribute name='value' type="xs:string" use='required'/>
</xs:complexType>
Expand Down

0 comments on commit cbaf9eb

Please sign in to comment.