Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consider a mechanism for getting the schema of a specific feature type or set of feature types. #634

Open
pvretano opened this issue Sep 21, 2021 · 0 comments

Comments

@pvretano
Copy link
Contributor

pvretano commented Sep 21, 2021

The JSON-FG SWG has introduced a key that allow the feature type of a feature in a collection to be asserted.

Using the currently proposed schema mechanism, if one wanted to get the schema of a specific feature type they would need to get the schema of the collection (say the create schema) and then -- depending on how the server encoded the schema -- search the response to find the schema of the desired feature type or feature types.

When generating the schema of a collection, a server can either generate a super-set schema that contains the properties found in all features of the collections or the server can generate a oneOf array with the schema of each feature type that might appear in the collection. In either case, getting the schema for a specific feature type(s) is a bit tedious.

It would be nice to introduce a mechanism for requesting the schema of a specific feature type or set of feature types. Perhaps by overloading the semantics of the type parameter in the schema proposal OR introducing another parameter featureTypes where a list of desired feature types could be listed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant