getValidatedData
getValidatedData<
T>(request):T|undefined
Defined in: packages/pipeline-zod/src/helpers/zod-data.helpers.ts:65
Returns a detached copy of the parsed payload for inspection. Its top level is
frozen and every call returns a fresh copy, so changing it cannot change the
validation state the behavior relies on. Without an internal validation
record, it falls back to a value stored under ZOD_VALIDATED_DATA_KEY; that
value is returned as data but never establishes a trusted validation result.
Type Parameters
Section titled “Type Parameters”T = Record<string, unknown>
Parameters
Section titled “Parameters”request
Section titled “request”unknown
Returns
Section titled “Returns”T | undefined