next-admin icon indicating copy to clipboard operation
next-admin copied to clipboard

feat: custom generator

Open foyarash opened this issue 4 months ago • 1 comments

Title

Migrate the current generator (prisma-json-schema-generator) to a custom generator that overloads the json schema given by prisma-json-schema-generator.

Type of Change

  • [x] New feature
  • [ ] Bug fix
  • [ ] Documentation update
  • [ ] Example update
  • [ ] Refactoring
  • [ ] Hotfix
  • [ ] Security patch
  • [ ] UI/UX improvement

Issue

#414

Description

This PR creates a custom Prisma generator that overloads the prisma-json-schema-generator JSON schema and creates it in the node_modules. This has 2 benefits:

  • no more DMMF dependency
  • no more schema imports on the app side

foyarash avatar Sep 30 '24 16:09 foyarash