connexion icon indicating copy to clipboard operation
connexion copied to clipboard

Should `None is not of type 'object'` be friendlier?

Open mihai-dinculescu opened this issue 5 years ago • 1 comments

Description

When an endpoint that expects a body is called without one, None is not of type 'object' is returned. Would you agree that a friendlier message would be preferable?

Expected behaviour

A friendlier message saying something along the lines "A request body is required".

Actual behaviour

None is not of type 'object'

Steps to reproduce

  • Endpoint expecting a request with a JSON body
  • Call it without providing a body

Additional info:

N/A

mihai-dinculescu avatar Feb 12 '20 18:02 mihai-dinculescu

Yes, this error message should be updated specifically when the request's body is passed null. This error message is so confusing instead of being helpful.

abdullah-abid-dev avatar Aug 04 '20 18:08 abdullah-abid-dev