generate_mock_variants
Generate multiple structurally valid but value-diverse mock objects from a Zod schema to surface edge cases in property-based testing. Supports reproducible output with a seed.
Instructions
Generate N structurally valid but value-diverse mocks from a Zod schema — for property-based testing. Use when generate_valid_mock is too deterministic and you need varied inputs to surface edge cases. Supply seed for reproducible output in CI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for reproducible output — omit for random variants each call | |
| count | No | Number of mock variants to generate (default: 5, max: 50) | |
| schema_code | Yes | Zod schema code |