Skip to main content

CRUD Only

Skip pure model variant and focus on object + CRUD argument schemas:

zod-generator.config.json
{
"mode": "custom",
"emit": {
"objects": true,
"crud": true,
"results": false,
"pureModels": false,
"variants": false,
"enums": true
}
}

Emits the objects/ input schemas and the root-level CRUD argument schemas (UserFindManySchema, UserCreateOneSchema, …) plus the enums they reference.

results: false is required here

Per-operation result schemas are produced inside the same pass as the CRUD schemas, so leaving emit.results unset would still write a results/ directory. emit.results can only ever subtract from what emit.crud enables — it cannot turn results/ on while emit.crud is false.