You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to share a solution that might help streamline and accelerate the process of generating OpenAPI documentation.
I’ve developed a library called next-openapi-gen,
which automatically generates OpenAPI specs from TypeScript-based API routes in Next.js 14+.
By simply defining TypeScript types and adding optional JSDoc annotations, you can eliminate the need for manual OpenAPI implementation. This could potentially replace the /lib/openapi.
It’s a lightweight, efficient way to document APIs, saving time and simplifying maintenance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I wanted to share a solution that might help streamline and accelerate the process of generating OpenAPI documentation.
I’ve developed a library called next-openapi-gen,
which automatically generates OpenAPI specs from TypeScript-based API routes in Next.js 14+.
By simply defining TypeScript types and adding optional JSDoc annotations, you can eliminate the need for manual OpenAPI implementation. This could potentially replace the /lib/openapi.
It’s a lightweight, efficient way to document APIs, saving time and simplifying maintenance.
I’d be curious to hear what you think.
Beta Was this translation helpful? Give feedback.
All reactions