evaluate_schema_evolution
Detect breaking changes when a Zod schema is tightened. Generates mocks from the old schema and validates them against the new schema to report exactly which fields and constraints now reject previously valid data.
Instructions
Detect breaking changes when a Zod schema is tightened — before tests run. Generates mocks from the old schema, validates them against the new schema, and reports exactly which fields and constraints now reject previously valid data. Use when you changed a schema and want to know if existing test fixtures will break.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_file_path | Yes | Absolute path to the TypeScript file containing the updated Zod schema | |
| old_schema_content | No | Full content of the old schema file. Omit to automatically retrieve the last committed version via git show HEAD. | |
| schema_export_name | Yes | Name of the exported Zod schema variable |