Introduction
Standard Schema is a common interface designed to be implemented by JavaScript and TypeScript schema libraries.
Any schema library that implements the Standard Schema interface can be used with Inversify Validation's Standard Schema Validation Pipe. This allows you to use this pipe with popular schema libraries like Zod, Valibot, Arktype and others.
Install dependencies
In order to use the package, install it along with the validation library of your choice:
- npm
- yarn
- pnpm
npm install zod @inversifyjs/standard-schema-validation
yarn add zod @inversifyjs/standard-schema-validation
pnpm install zod @inversifyjs/standard-schema-validation