Skip to content
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

Add functionality to reference "fields" of other preset as "moreFields" #53

Open
tyrasd opened this issue May 12, 2022 · 0 comments
Open
Labels
question Further information is requested

Comments

@tyrasd
Copy link
Collaborator

tyrasd commented May 12, 2022

Sometimes, in a "special case" preset one would like to keep parent fields only as "moreFields". For example, see openstreetmap/id-tagging-schema#423 where all generic building fields should be optional fields. Currently this can only be modeled by manually copying the fields of the building preset into the moreFields of the garages preset.

A possible solution could look like this:

    "moreFields": [
        "{building#fields}",
        "{building}"
    ],

Alternatively, a reference like "moreFields": ["{building}"] could also be implemented to automatically include all fields from the referenced preset as moreFields, if they are not yet included as regular fields in the new preset. This would, however, make it very difficult to completely remove a field in a sub-preset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant