MCPcopy
hub / github.com/FoalTS/foal / ValidateBodyOptions

Interface ValidateBodyOptions

packages/typestack/src/validate-body.hook.ts:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { validate, ValidatorOptions } from 'class-validator';
4
5export interface ValidateBodyOptions {
6 transformer?: ClassTransformOptions;
7 validator?: ValidatorOptions;
8}
9
10/**
11 * Hook factory validating the request body against a validator class. It also transforms

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected