ErrorsSign-in and identity · rule
type.principal_subject_not_unique
Principal's subject field is not unique.
Area 8, Sign-in and identity; not declinable; the next step is usually the agent's.
principal { user: { subject: Member.handle }}type Handle = Text { max_length: 40}entity Member { id: Uuid handle: Handle}
error Member.handle doesn't identify one user
--> main.jadpo:3:18
|3 | subject: Member.handle | ^^^^^^^^^^^^^ not unique
- reason
- A caller is looked up by its subject, so the subject names exactly one record:
Member.handleisn'tunique: true. - next
- Make
handlea required field withunique: true, or name one that is (agent) - rule
- type.
principal_ subject_ not_ unique - help
- https://jadpo.
dev/docs/errors/type. principal_ subject_ not_ unique
Markdown for agents: /docs/errors/type.principal_subject_not_unique.md.Built from Jadpo main at aee2e8f.