Validate(): TDecorator
validate using zod
for decorators.
schema: ZodSchema
optional
target: string = body
optional
onError: (err: TRet,rev: RequestEvent,) => TRet
zod-validator for nhttp.
Validate(): TDecorator
validate using zod
for decorators.
schema: ZodSchema
target: string = body
onError: (err: TRet,rev: RequestEvent,) => TRet
Add Package
deno add @nhttp/zod
Import symbol
import { Validate } from "@nhttp/zod";
---- OR ----
Import directly with a jsr specifier
import { Validate } from "jsr:@nhttp/zod";
Add Package
npx jsr add @nhttp/zod
Import symbol
import { Validate } from "@nhttp/zod";
Add Package
yarn dlx jsr add @nhttp/zod
Import symbol
import { Validate } from "@nhttp/zod";
Add Package
pnpm dlx jsr add @nhttp/zod
Import symbol
import { Validate } from "@nhttp/zod";
Add Package
bunx jsr add @nhttp/zod
Import symbol
import { Validate } from "@nhttp/zod";