next-rest-framework
next-rest-framework copied to clipboard
Invalid request body 400 error schema omits error property
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.