TypeScript Validation Schema
A plugin for GraphQL Codegen to generate form validation schema (such as yup, zod) based on your GraphQL schema for use in a client application.
- Version
- 0.19.0
- Weekly downloads
- 75k
- License
- MIT
- Updated
- Apr 25, 2026
Installation
npm i -D graphql-codegen-typescript-validation-schema
yarn add -D graphql-codegen-typescript-validation-schema
pnpm add -D graphql-codegen-typescript-validation-schema
bun add -D graphql-codegen-typescript-validation-schema
Built and maintained by Code-Hex
A plugin for GraphQL Codegen to generate form validation schema (such as yup, zod) based on your GraphQL schema for use in a client application.
Examples
Set up your project per the GraphQL Codegen Docs, and specify this plugin in your codegen.yml:
Usage & Documentation
For the complete documentation, please refer to Code-Hex/graphql-codegen-typescript-validation-schema repository.