-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential JSON Schema issues #129
Comments
I am not very familiar with JSON schema details, but that all sounds correct from the geoparquet side.
I am currently updating this field in #88, so your feedback there is certainly welcome! (we are basically already doing something with items and minItems now, just spelling out the 4 or 6 values explicitly)
Although it is not the case right now, but we are planning to add more options in the future, so can maybe keep it like that? (although also the enum wouldn't allow any other value right now, so it wouldn't really matter) |
Okay, I'll draft a PR. Any thoughts on #127 before I start? Edit: Opened PR #131
Done.
You can always change it back to enum once you've decided to add a new option. :-) |
#140 proposes changes to the geometry types. |
* Require minimum length of 1 for primary_geometry #129 * Update format-specs/geoparquet.md Co-authored-by: Chris Holmes <[email protected]>
Some potential improvements and/or issues in the JSON Schema:
$defs
keyword in the schema was only added in draft 2019-09 (see also Update JSON Schema version? #127 )additionalProperties: true
is the default and could be removed"patternProperties":
with a pattern".*"
is basically equivalent to additionalProperties and thus can be simplified a bit."enum": ["WKB"]
is equivalent to"const": "WKB"
, the same applies to"enum": ["counterclockwise"]
"items": {"type": "number"}, "minItems": 4
double
for epoch, but this is not enforced in the schema and could be an int (or should this be "number" in the spec?)Unknown
(so always as a string, not in an array). If this is the case, the schema doesn't check it.["Polygon", "Unknown"]
is valid.Happy to work on PRs, just let me know whether all this is correctly captured.
The text was updated successfully, but these errors were encountered: