The request body converter may return a Malformed JSON payload. 400 response if deserializing the data fails. This error is a bit misleading in that it suggests the data is malformed, when it could also just be incompatible with the related type. E.g. missing some required properties.
It should probably use a more generic error message, or more ideally be able to discern these two contexts.
The request body converter may return a
Malformed JSON payload.
400 response if deserializing the data fails. This error is a bit misleading in that it suggests the data is malformed, when it could also just be incompatible with the related type. E.g. missing some required properties.It should probably use a more generic error message, or more ideally be able to discern these two contexts.