cityjson / specs

Specifications for CityJSON, a JSON-based encoding for 3D city models
https://cityjson.org
Creative Commons Zero v1.0 Universal
107 stars 25 forks source link

duplicate keys: last object is used and no way to know #2

Closed hugoledoux closed 6 years ago

hugoledoux commented 6 years ago

this is inline with json standard, the last entry is the one used. CPP, Python and Ruby have that behaviour.

https://github.com/nlohmann/json/issues/375

I can't figure out how to verify this with the schema.

I just need to find a way to report an error.

hugoledoux commented 6 years ago

impossible with schema, AFAIK.

solved in : c029bb1ccca831954e44edd41689d11310387a13 cityjson-valschema now checks this, another JSON parsing is used, a bit slow and hacky but hey it works.