Generating & Using AsyncAPI Specs from Real-World API Data
summary
A tool called moxpop generates AsyncAPI specs from real HTTP captures by recording full-fidelity events (method, URL, headers, body), synthesizing precise JSON Schema with custom formats and enums, sanitizing sensitive strings, and merging schemas incrementally to improve accuracy. It then emits fixtured events derived from fitted schemas and publishes those fixtures to the target server for regression testing, validating integrations end-to-end. The generated specs are usable, the fixtures exercise real code paths, and adoption reduces surprise production mismatches despite upfront engineering cost.
AI-written summary · about
chapters (8)
- 0:00Start
- 7:50Generating Payload Schemas
- 9:18High Precision, Low Accuracy
- 10:25Regaining Precision
- 11:40Recording Examples
- 14:12Protocol Headers
- 14:38Application Headers
- 14:53Example Spec
related talks
24mUsing API spec as an Executable Contract To Mock and Test Microservices
31mUnifying OpenAPI & AsyncAPI : Designing JSON Schemas+Examples.
39mEvent Design with AsyncAPI, DDD, and AI
50mContract-Driven Development
12mGSoC: Writing the spec document without knowing the specification
22mAsync API Specification 2.0
11mIncreasing consistency and speed through code-generation
19mAutomate your API to perfection
