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.
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 thatassociated_trip
is allowed on any status event, but the schema has aoneOf
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.