Generate test fixtures from a schema

Infer a schema from sample JSON, then generate deterministic mock records in the format you need.

Step 1

Start from a representative JSON sample

Use a sample that covers the fields and nesting you actually care about in tests. A realistic example gives the schema generator enough shape information to be useful.

Step 2

Infer a JSON Schema from the sample

Paste the sample into JSON to Schema and capture the field names, required properties, and nested structures it infers. Clean up anything obviously too loose before you use it as a fixture template.

Infer with JSON to Schema

Step 3

Generate seeded fixture data

Feed the field shapes into Mock Data Generator and use a fixed seed so reruns stay deterministic. Export the results in the format your tests expect, whether that is JSON, CSV, SQL, or NDJSON.

Generate fixtures

Step 4

Profile the generated output before using it

Open the generated fixtures in Data Explorer if you want a quick check on null rates, duplicates, and value spread. This catches weak fixture sets before they turn into misleading tests.

Profile fixtures in Data Explorer