mock_from_schema
Generate realistic mock data from any JSON Schema, with contextual values for emails, names, dates, and more. Supports all schema types and constraints.
Instructions
Generate realistic mock data from a JSON Schema. Uses smart field-name detection to produce contextual values: email fields get valid emails, name fields get realistic names, dates get ISO strings, etc. Supports all JSON Schema types and constraints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducible output. Same seed + same schema = same data. | |
| count | No | Number of mock objects to generate (default: 1). If > 1, returns an array. | |
| schema | Yes | The JSON Schema to generate mock data from |