Skip to content

Should SingleJourney relate to VehicleTypeRef and not VehicleRef? #921

@TuThoThai

Description

@TuThoThai

NeTEx part 5

I think there is a bug in the XSD of NeTEx Part 5 for SingleJourney:

	<xsd:group name="SingleJourneyReferencesGroup">
		<xsd:annotation>
			<xsd:documentation>Reference Elements for SINGLE JOURNEY. </xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CommonVehicleServiceRef" minOccurs="0"/>
			<xsd:element ref="VehicleRef" minOccurs="0"/>
			<xsd:element ref="SingleJourneyPathRef" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>

I think, it should read VehicleTyepRef instead of VehicleRef which would translate in:

	<xsd:group name="SingleJourneyReferencesGroup">
		<xsd:annotation>
			<xsd:documentation>Reference Elements for SINGLE JOURNEY. </xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CommonVehicleServiceRef" minOccurs="0"/>
			<xsd:element ref="VehicleTypeRef" minOccurs="0"/>
			<xsd:element ref="SingleJourneyPathRef" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>

But, because we have decided to freeze the XSD, I can work on the PR for 2.1

Metadata

Metadata

Labels

bugTechnical mistake, inconsistency with the documentation, etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions