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

Forbid combinations enum+attribute and enum+optional #388

@lars-reimann

Description

@lars-reimann

Another suggestion:
I think we should rethink allowing optional and enum annotations on the same parameter.
If we were to allow it, there needs to be a way to use a value from the enum inside the optional annotation and optional annotations need additional checking whether or not it matches the enum.
As it is currently implemented it's possible to have optional values, that are not part of the assigned enum.

Originally posted by @paul0314 in #386 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions