Automatically validate requests during argument resolving

Created on 10 June 2022, about 2 years ago
Updated 17 November 2023, 8 months ago

Problem/Motivation

Currently, you have to manually validate the request objects in the controller. We could probably automate this by validating requests during argument resolving and throwing an ApiValidationException in case of validation errors.

Possible error conditions when mapping data:

  • Validation errors will result in HTTP 422 error responses (including a serialized ConstraintViolationList object)
  • Malformed data will be responded to with HTTP 400 error responses
✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024