Open API / Swagger Spec Generation #5757
-
Is there a way to generate Open API / Swagger Spec from Prisma Schema? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Currently there is no way to generate an Open API / Swagger spec from a Prisma schema , but you can have a look at this project that you can take inspiration from to create a generator that creates an Open API spec :) |
Beta Was this translation helpful? Give feedback.
-
You can generate the spec with Zenstack and its OpenAPI plugin: https://zenstack.dev/docs/reference/plugins/openapi Since Zenstack's schema is a superset of Prisma, you should be able to use it as is. |
Beta Was this translation helpful? Give feedback.
@VinayaSathyanarayana 👋
Currently there is no way to generate an Open API / Swagger spec from a Prisma schema , but you can have a look at this project that you can take inspiration from to create a generator that creates an Open API spec :)