Relationships with default(auth().id) are still marked as required in the DMMF passed to the plugin
Closed this issue · 1 comments
trancong12102 commented
Description and expected behavior
Starting from version 2.8.0, the DMMF passed to the plugin does not respect the auth() function with the default attribute. As a result, relationships with a default value are still marked as required in the OpenAPI plugin.
Environment (please complete the following information):
- ZenStack version:
2.9.3
- Prisma version:
5.22.0
- Database type:
Postgresql
Additional context
I believe this issue is related to the release of version 2.8.0, which introduced a change where custom attributes in ZModel are no longer automatically passed to the generated Prisma schema as comments.
ymc9 commented
fixed in 2.10.0