Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation fixes #81

Merged
merged 6 commits into from
Sep 7, 2019
Merged

Validation fixes #81

merged 6 commits into from
Sep 7, 2019

Conversation

thekaveman
Copy link
Contributor

Fix parsing of payload level errors where a oneOf has multiple matches.

The current use-case is for validating against 0.3.2, where the published schema doesn't align with the published spec in that associated_trip is allowed on any status event, but the schema has a oneOf condition for that property.

As far as the spec goes, this is being addressed by openmobilityfoundation/mobility-data-specification#353

Also a minor fix to guard against reading an attribute before it exists.

@thekaveman thekaveman added the bug Something isn't working label Aug 28, 2019
previously some item errors were incorrectly classified
as payload errors

makes downstream filtering and validation a little easier
@thekaveman thekaveman merged commit f3b42da into master Sep 7, 2019
@thekaveman thekaveman deleted the validation branch September 7, 2019 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant