Restrict the schemas to valid values #186
Closed
balazsdukai
started this conversation in
Ideas
Replies: 2 comments
-
Great that you start this 👍
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing this because discussion was transferred to #187 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I experimented with the popular JSON Schema Faker tool to mock CityJSON data.
I used the combined v2.0 schema to fake values for the CityJSON members.
It does generate a seemingly schema-valid CityJSON object, however many members have invalid values, for instance negative vertex indices in the boundaries.
The reason for this is that in several cases the schema does not restrict the values sufficiently.
Below is are the issues and potential fixes that I discovered from the generated CityJSON.
lod
should be restricted to the allowed values.type
. In the example below, the second semantic object does not have atype
member, which is required according to the specs.I don't see drawbacks from applying these restrictions where possible, but maybe others see it differently?
Beta Was this translation helpful? Give feedback.
All reactions