ErrorsSign-in and identity · rule
semantic.principal_variant_unknown
Principal variant is not user or service.
Area 8, Sign-in and identity; not declinable; the next step is usually the agent's.
A role is a field of the user's entity, which policy reads (area 9), never a kind of caller:
principal { user: { subject: Member.handle } admin: { subject: Member.handle }}type Handle = Text { max_length: 40}entity Member { id: Uuid handle: Handle { unique: true }}
error admin isn't a kind of caller
--> main.jadpo:5:5
|5 | admin: { | ^^^^^ not `user` or `service`
- reason
- A principal declares
user:, a person, andservice:, another system; a role or a tenant is a field of the user's entity, which policy reads (area 9). - next
- Remove
admin(agent) - rule
- semantic.
principal_ variant_ unknown - help
- https://jadpo.
dev/docs/errors/semantic. principal_ variant_ unknown
Markdown for agents: /docs/errors/semantic.principal_variant_unknown.md.Built from Jadpo main at aee2e8f.