Timestamp with more flexibility (e.g. nanoseconds, spaces as separators)#294
Timestamp with more flexibility (e.g. nanoseconds, spaces as separators)#294stjugi wants to merge 5 commits into
Conversation
|
So you now parse invalid data? |
|
T is not optional. |
|
This adapter is registered in The old formatter used
Since this PR is about parsing flexibility, is the change to marshalled output intentional? If not, restoring an optional fraction keeps the on-the-wire format stable for downstream consumers. |
|
I reviewed the PR and updated the marshaller to the previous format. |
|
It looks like I misunderstood the whole thing. I do not think this change belongs to the library. If you need to deal with invalid XML data, that should be handled upstream by filtering/transforming the invalid timestamps. |
|
No, its not about to import invalid NeTEx: The date format for the import is not following all requirements stemming from ISO 8601 such as :
The PR closes these gaps for the ingoing values. This has nothing to do with an invalid NeTEx to be corrected before importing. |
|
@stjugi the 'gap' does not exists. Because XML Schema does not support all variants. If you disagree, make a small XML file that have all mentioned variants, show that it passes xml validation (xmllint, with official NeTEx schema). And cannot be parsed in this Java package. |
The parser for time-values is more flexible to accept as well formats like:
Error correction: