Add test where `a from b` is directly assigned but contains `user:*` or `user#relation` errors out
Add a test that ensures that if b in the case of a from b is directly assigned but contains user:* or user#relation that we error out too.
e.g.
define parent: [folder:*]
define viewer: viewer from parent
define parent: [folder#parent]
define viewer: viewer from parent
Run against the current API and see if it properly validates against this case.
model
schema 1.1
type folder
relations
define parent: [folder:*]
define viewer: viewer from parent
From the CLI:
{
"is_valid":false,
"error":"the relation type 'folder' on 'parent' in object type 'folder' is not valid"
}
Where as language only throws:
`parent` relation used inside from allows only direct relation.
Hello @d-jeffery ,
I would like to contribute to this issue. Could you please assign it to me and provide any relevant references or guidance?
Thank you!
Hello @d-jeffery ,
I would like to contribute to this issue. Could you please assign it to me and provide any relevant references or guidance?
Thank you!
Hi, I'm no longer on this project. @rhamzeh?