File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ A Prisma generator that automatically creates OpenAPI specifications from your P
1919- [ Usage] ( #usage )
2020- [ Examples] ( #examples )
2121 - [ Basic Usage] ( #basic-usage )
22+ - [ Programmatic Schema Generation] ( #programmatic-schema-generation )
23+ - [ Custom Configuration] ( #custom-configuration )
2224 - [ JSDoc Integration] ( #jsdoc-integration )
2325 - [ Prisma Comments as Descriptions] ( #prisma-comments-as-descriptions )
2426- [ Configuration] ( #configuration )
@@ -150,13 +152,14 @@ components:
150152 - published
151153 - author
152154 - authorId
155+ ` ` `
153156
154157### Programmatic Schema Generation
155158
156159Generate a schema programmatically from a Prisma schema string:
157160
158161` ` ` ts
159- import { generateOpenApiSchema } from "prisma-openapi";
162+ import { generateOpenApiSchema } from "prisma-openapi/lib ";
160163
161164const schema = `
162165datasource db {
@@ -180,7 +183,7 @@ const { yaml, json } = await generateOpenApiSchema({
180183
181184console.log(yaml);
182185` ` `
183- ```
186+
184187
185188# ## Custom Configuration
186189
You can’t perform that action at this time.
0 commit comments