-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.kind/bugFeature doesn't work as expected.Feature doesn't work as expected.size/SSmall task. (A couple of hours of work.)Small task. (A couple of hours of work.)
Description
Currently, a generated server does not validate the content-type header before it tries to parse the request body contents, which means that if incorrect request body data is sent, the error message will be thrown by e.g. the JSONDecoder, and might be a bit cryptic, versus a clear error thrown by a method like validateContentTypeIfPresent
does for responses bodies.
Metadata
Metadata
Assignees
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.kind/bugFeature doesn't work as expected.Feature doesn't work as expected.size/SSmall task. (A couple of hours of work.)Small task. (A couple of hours of work.)