Declarative fixture blueprints
Defines repeatable records through compact field rules instead of copying or manually editing production-shaped examples.
Day 039 / APIs / Test Data
A dependency-free Python CLI that turns a bounded JSON blueprint into deterministic synthetic API fixtures in JSON array or JSON Lines format.
Defines repeatable records through compact field rules instead of copying or manually editing production-shaped examples.
Rejects unknown keys, unsupported rule types, invalid field names and oversized record or field counts.
Writes an indented JSON array for review or one compact object per line for streaming-oriented tools.
Deterministic synthetic records
Five focused field-rule types
One to 1,000 bounded records
One to 50 validated fields
JSON array and JSON Lines output
Twelve standard-library tests included
Argparse, pathlib, regular expressions and JSON provide the complete dependency-free command-line workflow.
Generates integer, string, boolean, enum and null values deterministically from a local blueprint.
Twelve tests cover every rule, deterministic ordering, input limits, unknown configuration and CLI output.