Custom error message struct is not used for response validation errors.
To Reproduce
Try calling /validation API method from advanced example with X-Input = 44; returned error is
{
"status": "INTERNAL",
"error": "internal: bad response: validation failed",
"context": {
"header:X-Output": [
"#: must be <= 20/1 but found 44"
]
}
}
Expected behavior
Error message should be generated using customErr.
Additional context
Input validation errors are formatted as expected:
Describe the bug
Custom error message struct is not used for response validation errors.
To Reproduce
Try calling /validation API method from advanced example with X-Input = 44; returned error is
Expected behavior Error message should be generated using
customErr
.Additional context Input validation errors are formatted as expected: