OpenAPI: every recorded example has a schema, and the Communications API has real examples
openapi.json is now version 1.12.0.
- 75 operations have a real response example (up from 24). The new ones cover the Communications API: workspaces, lists, contacts, templates, campaigns, reports, tracking, suppressions and settings, plus the template validate, lint and preview checks.
- Recorded from a live account, then scrubbed hard. Contact names and addresses, custom fields, template and campaign content, list descriptions, links (including tracking tokens) and ids are all replaced with placeholders before anything is published. Our test suite fails if anything real-looking gets through.
- Every operation with an example now has a response schema. Where a route had none, the schema is derived from the recorded response and marked
x-shape-source: recorded: it lists the fields we observed, allows others, and lets any value benull.
Documentation changed