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

Allow to define union availability on types #2830

Open
flobernd opened this issue Aug 29, 2024 · 0 comments
Open

Allow to define union availability on types #2830

flobernd opened this issue Aug 29, 2024 · 0 comments

Comments

@flobernd
Copy link
Member

For situations like in e.g. #2826 we have to include/exclude certain types from union type aliases.

To support this situation, we should introduce a new annotation union_availability which can by places on types. The syntax should copy the availability syntax.

On schema.json level, there should be a new key union_availabilites which contains the defined availabilities. The individual entries should use the Availability type - just like for the regular availabilities dictionary.

Open for discussion:
Should we support the same mechanic for deprecation?

cc @pquentin @swallez

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

No branches or pull requests

1 participant