-
Notifications
You must be signed in to change notification settings - Fork 85
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
Part 5: The limitations of JSON data types #946
Comments
I support this statement. I have had similar complex issues when mapping OGC API - Processes inputs (which can be Features) to the various CWL, WPS, JSON schema representations (see details: Weaver - Application Package - Type Correspondence). Using JSON schema implies a heavy use of Therefore, the standard tackling the "schema" problem to properly describe data should be more explicit and rigorous regarding the recommendations it provides. A few examples of recommendations could be:
|
SWG Meeting 29-JUL-2024: We discussed this issues and agreed that JSON datatypes are limited however it was pointed out that one can always use a string type with a bespoke |
The The biggest issue at the time is that all OGC APIs seem to be tossing the problem between each other, and never directly addressing this |
Why set This also follows the approach of OpenAPI 3.1 which defines formats "int32" and "int64" for signed integers. See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#data-types. We should use these as a starting point and extend this with unsigned and other bit size variants. |
Meeting 2024-08-12: As a general rule, if more fine-grained sub-types of the JSON data types are needed, There is a higher level governance issue how to add additional formats in OGC API standards beyond those that will be in Part 5. This could be discussed with the other OGC API SWGs in the common meetings at the next Member Meeting. |
The document says:
I'm working on something very similar in a project called fiboa, see https://github.com/fiboa/schema
My observation from this work, mapping JSON Schema to e.g. GeoParquet, is that it's not that easy as it sounds.
Especially the number data type is diffiult.
type: ["number", "string", "array"]
may not be easy or impossible to representThe text was updated successfully, but these errors were encountered: