@me2em/pact
    Preparing search index...

    Function validateEvent

    • Strict validation of an event OBJECT (not bytes): exact envelope shape, per-type payload (PACTS §7.3), limits (D35). Throws with the given reporting context — codec decodes bytes with 'codec', the verifier re-validates journal objects with 'verify', assemblers report 'assemble'. An event type outside the v1 registry rejects with UNKNOWN_EVENT_TYPE.

      Parameters

      Returns void

      PactError MALFORMED / UNKNOWN_EVENT_TYPE / PAYLOAD_TOO_LARGE on the first deviation from the normative shape.

      validateEvent(event, 'verify'); // throws unless fully well-formed