CityofSantaMonica / mds-provider

Python tools for working with MDS Provider data
https://github.com/openmobilityfoundation/mobility-data-specification
MIT License
18 stars 20 forks source link

Validation fixes #81

Closed thekaveman closed 5 years ago

thekaveman commented 5 years ago

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 https://github.com/CityOfLosAngeles/mobility-data-specification/pull/353

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