Repository navigation
Conversation
vpaturet
force-pushed
the
upgrade_netex_2_0
branch
from
April 10, 2026 13:33
e53e86c to
4b5972d
Compare
|
- Depend on org.entur:netex2-java-model instead of netex-java-model - Move imports from org.rutebanken.netex.* to org.entur.netex2.* - Use NeTExValidator.getNeTExValidator(version); constructors are private - Detect NeTEx 2.0 documents and validate them against the 2.0 schema - Java 21 baseline in CLAUDE.md
vpaturet
force-pushed
the
upgrade_netex_2_0
branch
from
October 13, 2026 13:42
4b5972d to
7439a9e
Compare
… DatedServiceJourneyUtils
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Summary
Upgrade to NeTEx 2.0 via
org.entur:netex2-java-model3.0.0 (entur/netex-java-model#270) andnetex-parser-java5.0.0 (entur/netex-parser-java#328). The validator version becomes 13.0.0.Changes
org.entur:netex2-java-model3.0.0-SNAPSHOT (new artifact) andnetex-parser-java5.0.0-SNAPSHOT, resolved from the Sonatype snapshot repository.org.rutebanken.netex.*toorg.entur.netex2.*.AllVehicleModesOfTransportEnumeration→AllPublicTransportModesEnumeration,MultilingualStringmixed content (newMultilingualStringValuehelper), null-safeDatedServiceJourney.getReplacedJourneys().NeTExValidatorconstructors are private in 3.0: useNeTExValidator.getNeTExValidator(version).2.0are validated against the 2.0 schema (NetexVersion.v2_0).upgrade_netex_2_0and publish snapshots from that branch.Before merging
upgrade_netex_2_0triggers and thepublish-snapshotjob frompush.yml.netex2-java-modelandnetex-parser-javaand drop the snapshot repository from the pom.Not changed
NetexDataRepository.serviceJourneyIdToActiveDatesstill returnsList<LocalDateTime>althoughOperatingDay.calendarDateis now aLocalDatein the model. Consumers must convert; this could be changed toLocalDatein a follow-up.Testing
mvn testwith Java 21: 272 tests, 0 failures.