ErrorsConfiguration · rule
type.presentation_text_persistence
Formatted text is stored.
Area 10, Configuration; not declinable; the next step is usually the agent's.
entity Receipt { id: Uuid issued_label: PresentationText}
error Receipt.issued_label would store text formatted for a person
--> main.jadpo:3:19
|3 | issued_label: PresentationText | ^^^^^^^^^^^^^^^^ `PresentationText`, stored
- reason
Receipt.issued_labelholdsPresentationText: text in one reader's language and zone, which another reader, a change of locale or a correction to the zone database would show differently, and which can't be read back as a time. A record keeps the value itself and formats it when it is shown.- next
- Store the
Instant,CalendarDateorZonedTimeinstead, and formatReceipt.issued_labelin the output that shows it (agent) - rule
- type.
presentation_ text_ persistence - help
- https://jadpo.
dev/docs/errors/type. presentation_ text_ persistence
Markdown for agents: /docs/errors/type.presentation_text_persistence.md.Built from Jadpo main at aee2e8f.