Skip to content

FareZone and refs should have constraint checks in timetable XSD#154

Merged
skinkie merged 1 commit intoTransmodelEcosystem:masterfrom
entur:CEN_add_missing_FareZone_key_constraints_to_NeTEx_Publication_Timetable_xsd
Apr 19, 2022
Merged

FareZone and refs should have constraint checks in timetable XSD#154
skinkie merged 1 commit intoTransmodelEcosystem:masterfrom
entur:CEN_add_missing_FareZone_key_constraints_to_NeTEx_Publication_Timetable_xsd

Conversation

@syversenkr
Copy link
Copy Markdown
Contributor

As you are allowed to define tariffZones->FareZone in both SiteFrame and ServiceFrame

</xsd:unique>
<!-- =====FareZone Key ========================== -->
<xsd:keyref name="FareZone_KeyRef" refer="netex:FareZone_AnyVersionedKey">
<xsd:selector xpath=".//netex:FareZoneRef | .//netex:ParentFareZoneRef | .//netex:FromFareZoneRef | .//netex:ToFareZoneRef |.//netex:ProjectedObjectRef"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double space after "ToFareZoneRef"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@syversenkr : Please fix the double space.

@nick-knowles
Copy link
Copy Markdown
Contributor

Was added to new modes branch some time back

@skinkie
Copy link
Copy Markdown
Contributor

skinkie commented Apr 7, 2021

@nick-knowles please refer to the commit.

</xsd:unique>
<!-- =====FareZone Key ========================== -->
<xsd:keyref name="FareZone_KeyRef" refer="netex:FareZone_AnyVersionedKey">
<xsd:selector xpath=".//netex:FareZoneRef | .//netex:ParentFareZoneRef | .//netex:FromFareZoneRef | .//netex:ToFareZoneRef |.//netex:ProjectedObjectRef"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<xsd:selector xpath=".//netex:FareZoneRef | .//netex:ParentFareZoneRef | .//netex:FromFareZoneRef | .//netex:ToFareZoneRef |.//netex:ProjectedObjectRef"/>
<xsd:selector xpath=".//netex:FareZoneRef | .//netex:ParentFareZoneRef | .//netex:FromFareZoneRef | .//netex:ToFareZoneRef | .//netex:ProjectedObjectRef"/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@syversenkr can you accept the suggestion?

@skinkie
Copy link
Copy Markdown
Contributor

skinkie commented Apr 15, 2022

Was added to new modes branch some time back

They are in NeTEx_publication.xsd but not in NeTEx_publication_timetable.xsd, this pull request is about the latter.

@skinkie skinkie requested review from Aurige and nick-knowles April 18, 2022 11:02
@skinkie skinkie merged commit c02c591 into TransmodelEcosystem:master Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants