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

Spec inconsistencies in generated data #3

Closed thekaveman closed 5 years ago

thekaveman commented 6 years ago

Thanks to @ian-r-rose for doing some initial JSON Schema testing against the generated data coming out of fake!

Per https://github.com/CityofSantaMonica/mobility-data-specification/pull/1#issuecomment-423023315, there are a few spec inconsistencies to address:

1.

jsonschema.exceptions.ValidationError: 'accuracy' is a required property

2.

jsonschema.exceptions.ValidationError: 845.9042534919543 is not of type 'integer'

Failed validating 'type' in schema['properties']['data']['properties']['trips']['items']['properties']['trip_duration']:

3.

jsonschema.exceptions.ValidationError: 2798.1217587696774 is not of type 'integer'

Failed validating 'type' in schema['properties']['data']['properties']['trips']['items']['properties']['trip_distance']: