offenesdresden / ParkAPI

🅿️ open API serving parking lot data for multiple cities
https://parkendd.de/map.html
MIT License
86 stars 46 forks source link

city_schema.json outdated(?) #219

Closed hbruch closed 3 years ago

hbruch commented 3 years ago

I just took a closer look into city_schema.json, trying to validate Herrenberg ParkAPI output against it. It seems to me that this schema is completely outdated and does not match the current interface any longer (coords are nested in the API, but flat in schema, count is named total and some further differences). Am I wrong to suppose it should validate the output of a city request like e.g. https://api.parkendd.de/Ulm?

jklmnn commented 3 years ago

This schema is indeed outdated. I have a status repository that I use to check the API status which currently validates all cities. We have to update the specs in this repository. In the meantime you can use https://github.com/jklmnn/parkendd-status/blob/master/schema_city.json (although the API might contain fields that are not present in this schema).

jklmnn commented 3 years ago

Is this solved for you with #220?

hbruch commented 3 years ago

Indeed, it is.