Closed sideshowbandana closed 2 years ago
@richmolj what do you think of this PR?
I think the issue is this breaks backwards-compatibility. I suggest throwing errors in this case and users can register those errors if they want 400. Also there is a codepath for this...you see we hit a RequestValidator
for writes but it is a pass-through for reads...so making a true validator class is the way to go I think
Sounds good, thanks for the suggestion!
When processing an invalid request that is missing the following headers:
and has the following body:
results in:
Which responds with a 500 status.
Instead the behavior should respond with a 400.