next-rest-framework
next-rest-framework copied to clipboard
Type-safe, self-documenting APIs for Next.js
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...
Added console.error at generatePathsFromBuild to log the errors.
This is somewhat related to #167, in the sense that this can be alleviated by specifying `export const dynamic = "force-dynamic";` in next-rest-framework route handlers. It looks like there's some...
Hey, after getting the generator to work (see my comments in the other issue) I am now struggeling with the generation. The provided example does work correctly (using js with...
``` createParam: routeOperation({ method: 'PUT', openApiOperation: { description: 'Creates a parameter.', summary: 'Creates a parameter' } }) .input({ query: createParamQuery }) .outputs([ { name: 'StorageCreateParamResponse', status: 200, contentType: 'application/json', body:...
The generated OpenAPI spec describes 400 error responses as having this structure: ``` { "type": "object", "properties": { "message": { "type": "string" } }, "required": ["message"], "additionalProperties": false } ```...