Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Enum and optional annotations don't work together #829

Open
@jofaul

Description

@jofaul

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @enumRelated to the @enum annotation@optionalRelated to the @optional annotationenhancement 💡New feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions