You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, generating we are using prisma-json-schema-generator to generate a JSON schema that we then have to import and pass into getNextAdminProps. This requires an extra dependency installation and an extra import of something that the user should not really care about.
The custom generator would allow us to add prisma-json-schema-generator as a dependency of next-admin, and to output the JSON schema directly in the node_modules (for example node_modules/.next-admin/json-schema.json). it would also allow us, in the future, to add some more customization to the JSON schema that would make the DMMF obsolete, since we could add all the DMMF information into the JSON schema.
Summary
Currently, generating we are using
prisma-json-schema-generator
to generate a JSON schema that we then have to import and pass intogetNextAdminProps
. This requires an extra dependency installation and an extra import of something that the user should not really care about.The custom generator would allow us to add
prisma-json-schema-generator
as a dependency of next-admin, and to output the JSON schema directly in the node_modules (for examplenode_modules/.next-admin/json-schema.json
). it would also allow us, in the future, to add some more customization to the JSON schema that would make the DMMF obsolete, since we could add all the DMMF information into the JSON schema.Basic Example
Drawbacks
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: