We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c014484 commit 17923f4Copy full SHA for 17923f4
1 file changed
src/lib/index.ts
@@ -1,4 +1,3 @@
1
-import {getDMMF} from '@prisma/internals';
2
import {generateOpenApiSpec} from '../on-generate/generate-open-api-spec.js';
3
import {
4
defaultOptions,
@@ -16,6 +15,8 @@ export async function generateOpenApiSchema(
16
15
throw new Error('Prisma schema must be a non-empty string.');
17
}
18
+ // eslint-disable-next-line @typescript-eslint/naming-convention
19
+ const {getDMMF} = await import('@prisma/internals');
20
const dmmf = await getDMMF({datamodel: prismaSchema});
21
const prismaOpenApiOptions: PrismaOpenApiOptions = {
22
...defaultOptions,
0 commit comments