ErrorsSign-in and identity · rule
semantic.principal_variant_duplicate
Principal declares a variant twice.
Area 8, Sign-in and identity; not declinable; the next step is usually the agent's.
principal { user: { subject: Member.handle } user: { subject: Member.handle }}type Handle = Text { max_length: 40}entity Member { id: Uuid handle: Handle { unique: true }}
error user: is declared twice
--> main.jadpo:5:5
|2 | user: { | ---- first declared here5 | user: { | ^^^^ declared again
- reason
- A principal says once which entity a user is, so a caller is looked up one way.
- next
- Remove one
user:(agent) - rule
- semantic.
principal_ variant_ duplicate - help
- https://jadpo.
dev/docs/errors/semantic. principal_ variant_ duplicate
Markdown for agents: /docs/errors/semantic.principal_variant_duplicate.md.Built from Jadpo main at aee2e8f.