Reads the validation metadata a middleware function was branded with.
The middleware to inspect
The metadata, or undefined when the middleware carries none
undefined
for (const fn of route.definition.middleware ?? []) { const meta = validationMetadataOf(fn); if (meta?.target === 'body') documentRequestBody(meta.schema);} Copy
for (const fn of route.definition.middleware ?? []) { const meta = validationMetadataOf(fn); if (meta?.target === 'body') documentRequestBody(meta.schema);}
0.3.0
Reads the validation metadata a middleware function was branded with.