Canonical wire bytes of the event: JCS(event) — UTF-8. No schema validation here (assemblers build valid events; the strict gate is decodeEvent / assertValidPayload).
decodeEvent
assertValidPayload
The event to serialize.
The canonical JCS bytes (UTF-8).
PactError MALFORMED @ codec when the event is not JSON-representable.
MALFORMED @ codec
const line = encodeEvent(event); // one NDJSON line of the export Copy
const line = encodeEvent(event); // one NDJSON line of the export
Canonical wire bytes of the event: JCS(event) — UTF-8. No schema validation here (assemblers build valid events; the strict gate is
decodeEvent/assertValidPayload).