Unclaimed project
Are you a maintainer of zod? Claim this project to take control of your public changelog and roadmap.
Changelog
TypeScript-first schema validation with static type inference
Last updated about 1 month ago
https://github.com/standard-schema/standard-schema/pull/134
z.fromJSONSchema()const jsonSchema = {
type: "object",
properties: {
name: { type: "string" },
age: { type: "number" }
},
required: ["name"]
};
const schema = z.fromJSONSchema(jsonSchema);
z.xor()const schema = z.xor(
z.object({ type: "user", name: z.string() }),
z.object({ type: "admin", role: z.string() })
);
// Exactly one of the schemas must match
z.looseRecord()const schema = z.looseRecord(z.string(), z.number());
// Allows additional properties beyond those defined
z.undefined() (#5504).toJSONSchema() method (#5477)z.fromJSONSchema(), z.looseRecord(), z.xor() (#5534)Interactive roadmaps, guides and other educational content to help developers grow in their careers.
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.