Skip to content

Commit 89b3a25

Browse files
committed
Also handle inout_port in XSD
1 parent 4f60ec4 commit 89b3a25

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/xml_parsing.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,15 @@ std::string writeTreeXSD(const BehaviorTreeFactory& factory, bool generic)
15691569
</xs:extension>
15701570
</xs:simpleContent>
15711571
</xs:complexType>
1572+
<xs:complexType name="inoutPortType">
1573+
<xs:simpleContent>
1574+
<xs:extension base="xs:string">
1575+
<xs:attribute name="name" type="xs:string" use="required"/>
1576+
<xs:attribute name="type" type="xs:string" use="optional"/>
1577+
<xs:attribute name="default" type="xs:string" use="optional"/>
1578+
</xs:extension>
1579+
</xs:simpleContent>
1580+
</xs:complexType>
15721581
<xs:attributeGroup name="preconditionAttributeGroup">
15731582
<xs:attribute name="_failureIf" type="xs:string" use="optional"/>
15741583
<xs:attribute name="_skipIf" type="xs:string" use="optional"/>
@@ -1602,6 +1611,7 @@ std::string writeTreeXSD(const BehaviorTreeFactory& factory, bool generic)
16021611
<xs:choice minOccurs="0" maxOccurs="unbounded">
16031612
<xs:element name="input_port" type="inputPortType"/>
16041613
<xs:element name="output_port" type="outputPortType"/>
1614+
<xs:element name="inout_port" type="inoutPortType"/>
16051615
</xs:choice>
16061616
<xs:element name="description" type="descriptionType" minOccurs="0" maxOccurs="1"/>
16071617
</xs:sequence>

0 commit comments

Comments
 (0)