Batch examples

Ready-to-run batch files for the batch runner, grouped into four families - each answering a different question. The JSON files live under pax/, route/, market/, and misc/ subfolders; the reference docs (pax.md, route.md, market.md) stay at the top of this directory.

docs/examples/batch/
├── README.md        ← you are here
├── pax.md           ← reference for the pax/ family
├── route.md         ← reference for the route/ family
├── market.md        ← reference for the market/ family
├── pax/*.json
├── route/*.json
├── market/*.json
└── misc/*.json      ← smoke + snap/unallocated/productFamily

Families

Family What it varies What it pins Use when you want to know…
misc/smoke.json Everything Dry-run only "Does the batch runner itself still work?" One file, mixed bookings, safe to run anywhere.
misc/snap.json Booking mode × market × pax Dry-run only "Do --snap, --unallocated, and --product-family still book end-to-end across markets and pax types?"
pax/ Destination (every carrier combo) One pax + class "Does this passenger type still book on every carrier?" - pax.md
route/ Pax × class matrix One OD / carrier combo "How does this carrier behave across pax and classes?" - route.md
market/ A fixed 4-booking sample One market (language + currency) "Does this market still work end-to-end across varied pax/routes?" - market.md

Quick-start

# Smoke test - safe, dry-run
bun book --batch docs/examples/batch/misc/smoke.json

# Snap / unallocated / productFamily across markets and pax types
bun book --batch docs/examples/batch/misc/snap.json

# Single pax type across every carrier combo
bun book --batch docs/examples/batch/pax/1a-std.json

# Single route across every pax × class combo
bun book --batch docs/examples/batch/route/lon-par.json

# One market, varied bookings
bun book --batch docs/examples/batch/market/fr-fr.json

Results land next to each JSON file (foo.jsonfoo.csv).

Run a whole family

# Every pax file (9 files × 13 destinations = 117 bookings)
for f in docs/examples/batch/pax/*.json; do bun book --batch "$f"; done

# Every route file (9 files × 12 combos = 108 bookings)
for f in docs/examples/batch/route/*.json; do bun book --batch "$f"; done

# Every market file (8 files × 4 bookings = 32 bookings)
for f in docs/examples/batch/market/*.json; do bun book --batch "$f"; done

File index

Misc

Pax family - see pax.md

Route family - see route.md

Market family - see market.md