-
Key: GEMS14-19
-
Legacy Issue Number: 19647
-
Status: closed
-
Source: Amergint Technologies ( Rob Andzik)
-
Summary:
The GEMS XML schema for a directive message has an extra, optional, attribute that should not be there. This was never caught until code generation was used and the attribute showed up.
Incorrect:
<!--
GEMS Directive
-->
<xsd:complexType name="ArgumentsType">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Parameter" type="Parameter"/>
</xsd:sequence>
<xsd:attribute name="directive_name" type="xsd:string" use="optional"/>
</xsd:complexType>
Correct:
<!--
GEMS Directive
-->
<xsd:complexType name="ArgumentsType">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Parameter" type="Parameter"/>
</xsd:sequence>
</xsd:complexType>
-
Reported: GEMS 1.3 — Fri, 24 Oct 2014 04:00 GMT
-
Disposition: Resolved — GEMS 1.4
-
Disposition Summary:
Remove the extra directive_name attribute in the Directive schema
The directive name is specified in the DirectiveMessageType:
<xsd:complexType name="DirectiveMessageType">
<xsd:complexContent>
<xsd:extension base="MessageType">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="directive_name" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="arguments" type="ArgumentsType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>But there is also an extra attribute in the ArgumentsType:
<xsd:complexType name="ArgumentsType">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Parameter" type="Parameter"/>
</xsd:sequence>
<xsd:attribute name="directive_name" type="xsd:string" use="optional"/>
</xsd:complexType>The extra attribute should be removed
-
Updated: Tue, 29 Mar 2016 15:08 GMT
GEMS14 — Extra Attribute in GEMS 1.3 Directive Schema
- Key: GEMS14-19
- OMG Task Force: Ground Equipment Monitoring Service 1.4 RTF