next-rest-framework icon indicating copy to clipboard operation
next-rest-framework copied to clipboard

Invalid request body 400 error schema omits error property

Open markedwards opened this issue 6 months ago • 0 comments

The generated OpenAPI schema for a 400 error includes only the message property, but there is also an errors property with a lot of interesting information. Is there a reason why this property is not included in these generated errors?

Also, is there any way to have the request validation trigger informative logging in Next?

The issue I'm facing is there is a periodic invalid request body. The error is not logging in the API server, and because the errors property is not in the schema its not logged in the generated client either.

markedwards avatar Aug 06 '24 17:08 markedwards