Documentation
    Preparing search index...

    Variable documentsEnvelopeSchemaConst

    documentsEnvelopeSchema: ZodObject<
        {
            documents: ZodArray<
                ZodObject<{ rule: ZodString; source: ZodString }, $strict>,
            >;
        },
        $strip,
    > = ...

    Envelope the service parses POST /documents with: the shape of documentsRequestSchema, but source is any non-empty string, so a malformed reference rejects only its own document (invalid_reference in rejected) instead of the whole request. Shape errors (count, missing or empty rule, unknown keys) still fail the request with 400.