Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
Description and expected behavior
Create a model with a field named model:
model MyModel {
model String
}
npx zenstack generate errors with
Validation errors:
line 548: Expecting: expecting at least one iteration which starts with one of these possible Token sequences::
<[TRIPLE_SLASH_COMMENT] ,[ID] ,[in] ,[@@]>
but found: 'model' []
line 548: Expecting: one of these possible Token sequences:
1. [ID]
2. [in]
but found: 'String' []
line 548: Expecting token of type '{' but found `String`. []
line 548: Expecting token of type 'EOF' but found `String`. []
Environment (please complete the following information):
ZenStack version: 1.0.0-alpha.113
Prisma version: 4.11.0
Database type: PostgreSQL
Additional context
Yup, I actually have a legit usecase for a field named model. Don't ask...
Description and expected behavior Create a model with a field named
model
:npx zenstack generate
errors withEnvironment (please complete the following information):
1.0.0-alpha.113
4.11.0
Additional context Yup, I actually have a legit usecase for a field named
model
. Don't ask...