{ // json5: comments + trailing commas + unquoted keys // __variants picks the first whose `when` matches the request __variants: [ { when: { query: { role: 'admin' } }, body: { role: 'admin', canDelete: true, seats: 999 }, }, { when: { headers: { 'x-tier': 'pro' } }, body: { role: 'user', canDelete: false, seats: 25 }, }, { // fallback (no `when`) body: { role: 'user', canDelete: false, seats: 1 }, }, ], }