Skip to content

[FEATURE] Create custom inline and class based annotations #4003

@poloka

Description

@poloka

Before submitting
Please check our wiki because some feature requests are asked a lot and there are good reasons (as explained on the wiki) why we can't (yet) implement them or why we won't implement them.

Describe the feature
The request to add the ability to create custom annotations will significantly decrease the boilerplate code required to perform validations for instance/class member variables and function signatures. This request has two parts.

  1. Allow creation of a custom annotation (ie: @Positive, @GreaterThanZero, @FooBar, etc) in a very simple manner without the need for a lot of boilerplate code making custom annotations a first class supported concept.
  2. Allow custom inline annotations to maybe check a simple check on the fly (ie: @Custom { val > 0 }).

Describe the target audience
Audience would be anyone who want to reduce the boilerplate code for performing simple validations within their code.

Additional context
Add any other context about the feature / enhancement here.

Metadata

Metadata

Assignees

No one assigned

    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