As asked
What is the OpenAPI Specification and what developer tooling does it unlock? Where does it fall short?
Sample answer outline
A strong answer explains OpenAPI as a machine-readable description of a REST API's endpoints, request and response schemas, authentication methods, and error codes. The tooling it enables: generated API reference docs, auto-generated SDK clients, Postman collections, mock servers, and linting. Shortcomings: it describes the HTTP surface but not semantic behavior or business logic, the spec can diverge from the actual API if not generated from code, and it does not handle GraphQL or event-driven APIs. On the version difference: OpenAPI 3.1 aligns fully with JSON Schema draft 2020-12, which means validation tooling that understands JSON Schema works directly with 3.1 specs, whereas 3.0 used a subset that differed in a few important ways such as nullable handling. OpenAPI 3.1 also adds native webhook support.
Expect these follow-ups
- How would you keep an OpenAPI spec in sync with the actual API implementation over time?