ErrorsExternal services · rule
package.wire_invalid
Field says how it is sent in a way it can't.
Area 11, External services; not declinable; the next step is usually the agent's.
A provider package's field says how it is sent with
wire:, one of the built-in encodings, or with its package's owndecode:andencode:functions, given together. Either is refused outside a provider package, both on one field, an encoding that doesn't hold the field's type orWire.minor_unitswithout the field's one currency, and a function that isn't the package's or doesn't take and give the right types.wire_parts:is refused on a type not made of parts, beside another way of sending the field, with a part left out, unknown or given twice, or a spelling that isn't text.
An encoding holds the types its provider sends that way:
/// A parcel and where it is.public type Parcel = Object { status: Text collected_on: Text { wire: Wire.unix_seconds }}
error Wire.unix_seconds sends an Instant, and collected_on is a Text
--> shared/providers/acme_couriers/v1/types/parcel.jadpo:5:15
|5 | wire: Wire.unix_seconds | ^^^^^^^^^^^^^^^^^ a `Text` field
- reason
Wire.unix_secondsis how a provider sends anInstant; a field of another type is sent as the contract writes it, in another encoding, or by the package's owndecode:andencode:functions.- next
- Name the encoding the provider sends a
Textin, or removewire:(agent) - rule
- package.
wire_ invalid - help
- https://jadpo.
dev/docs/errors/package. wire_ invalid
Markdown for agents: /docs/errors/package.wire_invalid.md.Built from Jadpo main at aee2e8f.