MCPcopy
hub / github.com/fastify/fastify / validateInput

Method validateInput

types/request.d.ts:112–112  ·  view source on GitHub ↗
(input: any, schema: { [key: string]: any }, httpPart?: HTTPRequestPart)

Source from the content-addressed store, hash-verified

110 getValidationFunction(schema: { [key: string]: any }): ValidationFunction | undefined
111 compileValidationSchema(schema: { [key: string]: any }, httpPart?: HTTPRequestPart): ValidationFunction
112 validateInput(input: any, schema: { [key: string]: any }, httpPart?: HTTPRequestPart): boolean
113 validateInput(input: any, httpPart?: HTTPRequestPart): boolean
114 getDecorator<T>(name: string | symbol): T;
115 setDecorator<T = unknown>(name: string | symbol, value: T): void;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected