Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Add ability to have constants #759

Open
rspremulli-sf opened this issue Jul 3, 2021 · 0 comments
Open

Add ability to have constants #759

rspremulli-sf opened this issue Jul 3, 2021 · 0 comments

Comments

@rspremulli-sf
Copy link

Use case:

I have a discriminated type, and certain properties, such as the discriminator value itself, may only accept a single valid value. There is a need to pass the value to identify the type, but there is only one allowed value. Ideally, we could have a constant facet that simply says, "this is the value you must pass"

Current workaround:

required value with an enum that has only one value in it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant