-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
Is using use as a permission name allowed? The validation behaviour is different depending if we also have the import keyword or not in the schema file...
- example.zed
import "whatever.zed"
definition my_definition {
relation user: login
permission use = user
}
definition login {
}
(The whatever.zed file is empty)
Running zed validate example.zed will produce error:
ERR terminated with errors error="parse error in ``, line 6, column 14: Expected identifier, found token TokenTypeKeyword"
- example2.zed
definition my_definition {
relation user: login
permission use = user
}
definition login {
}
Running zed validate example2.zed will produce success
Success! - 0 relationships loaded, 0 assertions run, 0 expected relations validated
- example3.zed
import "whatever.zed"
definition my_definition {
relation user: login
permission use_potato = user
}
definition login {
}
Running zed validate example3.zed will produce success
Success! - 0 relationships loaded, 0 assertions run, 0 expected relations validated
Metadata
Metadata
Assignees
Labels
No labels