Skip to content

Conversation

@SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented Nov 21, 2025

resolves #666


This change is that a compiler warning is produced when the avaje-http @Valid annotation is used on something that is NOT a @Controller.

That is, avaje-http @Valid annotation is only intended to be used on controllers to inform the controller code generation that endpoints with request bodies should have bean validation applied to them before the controller method is invoked.

@SentryMan SentryMan added this to the 3.6 milestone Nov 21, 2025
@SentryMan SentryMan self-assigned this Nov 21, 2025
@SentryMan SentryMan added the enhancement New feature or request label Nov 21, 2025
@SentryMan SentryMan enabled auto-merge (squash) November 21, 2025 17:48
@SentryMan SentryMan changed the title Add Compile Warning for Http Valid when used outside a controller Add Compile Warning for Http Valid when used outside a Controller Nov 21, 2025
@SentryMan SentryMan merged commit 2d1d222 into avaje:master Nov 22, 2025
5 checks passed
@SentryMan SentryMan deleted the valid-warning branch November 22, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[enhancement] Confusing to have jakarta/javax @Valid, avaje-http @Valid, avaje-validator @Valid

2 participants