-
-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
Description and expected behavior
Validating the schema with zen check reports no error when trying to import a missing plugin.
For instance, if using the @zenstackhq/plugin-policy without installing it, zen check fails on "Could not resolve reference to Attribute named '@@Allow'" but not when validating the
plugin policy {
provider = '@zenstackhq/plugin-policy'
}
section, which is not consistent.
Environment :
- ZenStack version: 3.3.3 (@zenstackhq/orm: v3.3.3 @zenstackhq/cli: v3.3.3, @zenstackhq/plugin-policy: v3.3.3)
- Node.js version: 20.19.2
- Package manager: npm
Steps to reproduce
npm create zenstack@latest test-allow-attr
cd test-allow-attr
nano zenstack/schema.zmodel
# => add
# plugin policy {
# provider = '@zenstackhq/plugin-policy'
# }
# => and add
# @@allow('all', id == auth().id)
npx zen check
# zenstack/schema.zmodel:18:4 - Could not resolve reference to Attribute named '@@allow'.
# ✗ Schema validation failed.
# Schema contains errors. See above for details.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels