pub fn reproduction(case: &Case) -> StringExpand description
Build a deterministic curl reproduction string for a case.
The output is ready to paste into a shell:
curl -X POST https://api.acme-co.example/v1/events \
-H "content-type: application/json" \
-H "user-agent: acme-client/0.4.1" \
--data-raw '{"event":"order.created","order_id":"ord_8KZ"}'Headers are emitted in alphabetical order; the body is inlined
with --data-raw (single-quoted with embedded single-quotes
shell-escaped) rather than referenced via --data-binary @file.
The latter would bake an absolute path into the output and break
snapshot stability across machines.