You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: deno/lib/README.md
+13-9
Original file line number
Diff line number
Diff line change
@@ -460,6 +460,7 @@ There are a growing number of tools that are built atop or support Zod natively!
460
460
461
461
#### Form integrations
462
462
463
+
-[`conform`](https://conform.guide/api/zod): A progressive enhancement first form validation library for Remix and React Router
463
464
-[`react-hook-form`](https://github.com/react-hook-form/resolvers#zod): A first-party Zod resolver for React Hook Form.
464
465
-[`zod-validation-error`](https://github.com/causaly/zod-validation-error): Generate user-friendly error messages from `ZodError`s.
465
466
-[`zod-formik-adapter`](https://github.com/robertLichtnow/zod-formik-adapter): A community-maintained Formik adapter for Zod.
@@ -471,7 +472,8 @@ There are a growing number of tools that are built atop or support Zod natively!
471
472
-[`@modular-forms/solid`](https://github.com/fabian-hiller/modular-forms): Modular form library for SolidJS that supports Zod for validation.
472
473
-[`houseform`](https://github.com/crutchcorn/houseform/): A React form library that uses Zod for validation.
473
474
-[`sveltekit-superforms`](https://github.com/ciscoheat/sveltekit-superforms): Supercharged form library for SvelteKit with Zod validation.
474
-
-[`mobx-zod-form`](https://github.com/MonoidDev/mobx-zod-form): Data-first form builder based on MobX & Zod
475
+
-[`mobx-zod-form`](https://github.com/MonoidDev/mobx-zod-form): Data-first form builder based on MobX & Zod.
476
+
-[`@vee-validate/zod`](https://github.com/logaretm/vee-validate/tree/main/packages/zod): Form library for Vue.js with Zod schema validation.
475
477
476
478
#### Zod to X
477
479
@@ -483,7 +485,8 @@ There are a growing number of tools that are built atop or support Zod natively!
483
485
-[`fastify-type-provider-zod`](https://github.com/turkerdev/fastify-type-provider-zod): Create Fastify type providers from Zod schemas.
484
486
-[`zod-to-openapi`](https://github.com/asteasolutions/zod-to-openapi): Generate full OpenAPI (Swagger) docs from Zod, including schemas, endpoints & parameters.
485
487
-[`nestjs-graphql-zod`](https://github.com/incetarik/nestjs-graphql-zod): Generates NestJS GraphQL model classes from Zod schemas. Provides GraphQL method decorators working with Zod schemas.
486
-
-[`zod-openapi`](https://github.com/samchungy/zod-openapi): Create full OpenAPI v3.x documentation from Zod Schemas.
488
+
-[`zod-openapi`](https://github.com/samchungy/zod-openapi): Create full OpenAPI v3.x documentation from Zod schemas.
489
+
-[`fastify-zod-openapi`](https://github.com/samchungy/fastify-zod-openapi): Fastify type provider, validation, serialization and @fastify/swagger support for Zod schemas.
487
490
488
491
#### X to Zod
489
492
@@ -1203,7 +1206,7 @@ Starting from this object:
1203
1206
1204
1207
```ts
1205
1208
const user =z.object({
1206
-
email: z.string()
1209
+
email: z.string(),
1207
1210
username: z.string(),
1208
1211
});
1209
1212
// { email: string; username: string }
@@ -1267,10 +1270,12 @@ Contrary to the `.partial` method, the `.required` method makes all properties r
Good type inference support, but limited options for object type masking (no `.pick` , `.omit` , `.extend` , etc.). No support for `Record` s (their `Record` is equivalent to Zod's `object` ). They DO support readonly types, which Zod does not.
2794
+
Good type inference support. They DO support readonly types, which Zod does not.
2791
2795
2792
2796
- Supports "pattern matching": computed properties that distribute over unions
0 commit comments