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.

For optional parameters allow using the default value as constant value #904

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

When using the @value annotation with variant constant, the most common case is that we make an optional parameter constant. However, we always need to set an explicit value even in this case. This is time-consuming and until #872 is implemented, it's also rather limiting.

Desired solution

When configuring the @value of an optional parameter, add another radio button "Constant Original Default" or just "Remove" under the label "Choose the variant of this annotation:". It can then hide the two other form controls, similar to the "Required" option.

Possible alternatives (optional)

Have the user select the "Constant" radio button. Afterwards, the option to reuse the original default value could be offered.

Screenshots (optional)

image

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions