Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Enum and optional annotations don't work together #829

Open
jofaul opened this issue Jul 1, 2022 · 0 comments
Open

Enum and optional annotations don't work together #829

jofaul opened this issue Jul 1, 2022 · 0 comments
Labels
enhancement 💡 New feature or request @enum Related to the @enum annotation @optional Related to the @optional annotation

Comments

@jofaul
Copy link
Contributor

jofaul commented Jul 1, 2022

Is your feature request related to a problem?

Annotating a function with an enum annotation (e.g. {"a", "b", "c"} -> Enum.A, Enum.B, Enum.C) works, giving it an optional annotation with the default value "a" also works, but this default value should be Enum.A and not the literal string "a".

Desired solution

Possibly expand the enum annotation to be able to mark a value as default, or expand optional annotation to add enums/code

Possible alternatives (optional)

No response

Screenshots (optional)

image

Additional Context (optional)

No response

@jofaul jofaul added the enhancement 💡 New feature or request label Jul 1, 2022
@lars-reimann lars-reimann moved this to Backlog in API Editor Jul 1, 2022
@DavidTen1 DavidTen1 added @enum Related to the @enum annotation @optional Related to the @optional annotation labels Jul 1, 2022
@lars-reimann lars-reimann removed this from API Editor Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement 💡 New feature or request @enum Related to the @enum annotation @optional Related to the @optional annotation
Projects
None yet
Development

No branches or pull requests

2 participants