Skip to content

Commit 35ede39

Browse files
committed
fix
1 parent a5f1b6e commit 35ede39

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
156159
Generate 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

161164
const schema = `
162165
datasource db {
@@ -180,7 +183,7 @@ const { yaml, json } = await generateOpenApiSchema({
180183
181184
console.log(yaml);
182185
```
183-
```
186+
184187

185188
### Custom Configuration
186189

0 commit comments

Comments
 (0)