Skip to content

Can validate request body #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2023
Merged

Can validate request body #129

merged 1 commit into from
Jan 16, 2023

Conversation

SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented Jan 16, 2023

Now we can do wacky stuff like this

  @Valid
  @Post("/valid")
  ResponseModel valid(@Valid RequestModel m) {

  }
  • now if validation annotation is on a body param will generate validation code
  • sorta support jakarta annotations ( Now somebody could implement Validator with Jakarta if they want)

Partially takes care of #127

@rbygrave rbygrave added this to the 1.23 milestone Jan 16, 2023
@rbygrave rbygrave merged commit 38b72e2 into avaje:master Jan 16, 2023
@SentryMan SentryMan deleted the validation branch January 16, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants