Interface preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger>
interface preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger> ((this,
request,
reply,
done) => void) - preValidationHookHandler(this, request, reply, done): void
Parameters
- this: FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>
- request: FastifyRequest<RouteGeneric, RawServer, RawRequest, SchemaCompiler, TypeProvider, ContextConfig, Logger, ResolveFastifyRequestType<TypeProvider, SchemaCompiler, RouteGeneric>>
- reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, UndefinedToUnknown<KeysOf<RouteGeneric["Reply"]> extends never
? ResolveReplyFromSchemaCompiler<TypeProvider, SchemaCompiler>
: RouteGeneric["Reply"]>> - done: HookHandlerDoneFunction
Returns void
preValidationis the third hook to be executed in the request lifecycle. The previous hook waspreParsing, the next hook will bepreHandler.