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
Issue fork api_toolkit-3285011
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dieterholvoet commentedComment #3
dieterholvoet commentedComment #5
dieterholvoet commentedComment #7
dieterholvoet commented