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.
Envelope the service parses
POST /documentswith: the shape of documentsRequestSchema, butsourceis any non-empty string, so a malformed reference rejects only its own document (invalid_referenceinrejected) instead of the whole request. Shape errors (count, missing or emptyrule, unknown keys) still fail the request with400.