Closed rhamzeh closed 2 months ago
Is this the same case? or is it no entry? or both?
model
schema 1.1
type user
type group
relations
define group: group from group
Both apply I guess, but my preference would be no entry
Both apply I guess, but my preference would be no entry
I think I can have it return both errors for the model in question. Is that desirable?
relation used inside from allows only direct relation
before entrypoint check
The language server shows an unhelpful
ModelValidationError
:The actual error should inform the user the because group -> org has a rewrite (in this case tuple to userset, but computed usersets or a type restriction with a userset should also fail), it cannot be used as the source of a from (cannot be used as a tupleset).
The actual error message should be discussed.
The API shows a much more helpful message in similar situations: