IT Glossary
What is OpenAPI (the OpenAPI Specification) and what is it for
The standard format, in YAML or JSON, for describing an API completely: which addresses it exposes, which parameters it accepts and which responses it returns.
- 7
- sections
- 5
- questions answered
OpenAPI (the OpenAPI Specification, OAS; known as the Swagger Specification until 2016) is the open standard for describing an HTTP API completely in one YAML or JSON file — endpoints, methods, parameters, responses, errors and authentication — so that people and programs can use it without access to the source code. From that file you can generate interactive documentation, client code in dozens of programming languages, and tests that check whether the API honors its own contract.
Like an architect’s plans, every dimension is drawn rather than narrated. The practical gap is large. An integration against an API documented with OpenAPI starts within hours, because the partner reads the specification and generates the connecting code. An integration against an API described through a chain of emails starts with weeks of questions. For a company commissioning an API the rule follows directly: make the OpenAPI specification a mandatory deliverable in the contract. It is your guarantee that future integrations, and any eventual change of supplier, will not begin again from zero. Checked on 18 November 2026 at spec.openapis.org: the newest version is 3.2.1, published on 10 September 2026.
Why it matters for your business
Integrations that start in hours, not weeks
Partners receive a complete specification and generate their own connecting code — months of emails asking what format that field uses simply disappear.
Documentation that never lies
Interactive documentation is generated from the same specification the API runs against — no more PDFs sitting three versions behind reality.
A contract verified automatically
Tests continuously compare the API’s real behavior against the specification — any deviation is caught before release, not inside a partner’s production system.
What an OpenAPI file contains
The file has fixed top-level fields: “openapi” (the version of the specification used), “info” (the title and the API’s own version), “servers” (base addresses), “paths” (the endpoints and the operations on them), “components” (reusable schemas, responses and security schemes) and “security” (how a caller authenticates). For example, a POST /invoices operation can have its request schema defined once in “components” and reused wherever it appears.
YAML and JSON describe the same object; if you use YAML, the recommended version is 1.2, and the entry file is preferably named “openapi.json” or “openapi.yaml” (OAS 3.2.1, §3.1 and §4.1). A common mistake: the “openapi” field is the version of the specification (for example 3.1.1), not your API’s version; that goes in “info.version”.
OpenAPI vs Swagger
OpenAPI is the specification, governed by the OpenAPI Initiative, an open-source project of the Linux Foundation formed in November 2015 by SmartBear, 3Scale, Apigee, Capital One, Google, IBM, Intuit, Microsoft, PayPal and Restlet. Swagger is the specification’s original name (Swagger 1.0 on 10.08.2011, Swagger 2.0 on 08.09.2014) and, today, the brand of SmartBear’s tools: Swagger UI, Swagger Editor, Swagger Codegen and SwaggerHub.
Swagger 2.0 was donated on 31.12.2015, and the first version under the new name, OpenAPI 3.0.0, was released on 26.07.2017. So “Swagger 2.0” and “OpenAPI 3.x” mean the old and the new generation of the same specification. Swagger UI is open source, under the Apache-2.0 licence.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
OpenAPI vs REST API
REST is an architectural style for building an API; OpenAPI is a format for describing one. A REST API can exist without an OpenAPI file, and OpenAPI can describe HTTP APIs that are not strictly REST — the specification speaks of “HTTP APIs”, not only REST. It does not cover GraphQL (which has its own schema language), gRPC (which uses Protocol Buffers) or event and message APIs, which are described with AsyncAPI.
Other meanings: open API and Openapi
In everyday speech, “open API” means an API opened to other companies, not just internal use, for example open banking APIs, open to authorised providers — not the specification. “Openapi” (openapi.ro) is a Romanian commercial service selling business-data APIs: company data by tax ID (CIF), the BNR exchange rate, and validation of CIF, CNP and IBAN. It shares the name but has nothing to do with the standard.
OpenAPI versions (checked on 18.11.2026)
From the specification’s own revision table (spec.openapis.org): 3.0.0 on 26.07.2017 (latest patch, 3.0.4, on 24.10.2024); 3.1.0 on 15.02.2021, where the Schema Object becomes a superset of JSON Schema Draft 2020-12 and the “webhooks” field appears (latest patch, 3.1.2, on 19.09.2025); 3.2.0 on 19.09.2025, with nested tags (parent, kind), streaming media types, “additionalOperations” for other HTTP methods and “querystring”; 3.2.1 on 10.09.2026, the newest.
Our recommendation for a contract: ask for at least 3.1; ask for 3.2 once the tools in your supplier’s chain validate it. Swagger UI, for instance, only added “basic OpenAPI 3.2.0 support” in version 5.32.0, on 27.02.2026. Version 2.0 is acceptable only on legacy systems, with a conversion plan.
Frequently asked questions
Are OpenAPI and Swagger the same thing?
The same specification, renamed: Swagger 2.0 was donated on 31.12.2015, and the next version appeared in 2017 as OpenAPI 3.0.0. Today “Swagger” is the brand of SmartBear’s tools around it — Swagger UI for interactive documentation, Swagger Editor for writing specifications.
Which version of OpenAPI should I ask for in 2026?
Ask for at least 3.1. The newest version is 3.2.1 (10.09.2026), but ask for 3.2 only if your supplier’s tools support it — Swagger UI has had basic support since 27.02.2026. Version 2.0 is old and makes sense only on existing systems, with a conversion plan.
Is OpenAPI written in YAML or JSON?
Either, because both describe the same object. If you use YAML, the specification recommends version 1.2 so the file converts losslessly to JSON; the entry file is preferably named openapi.yaml or openapi.json. Choose the format your team reads comfortably, not whichever one a tool happens to impose.
Is the OpenAPI specification written by hand?
Both approaches exist. Design-first: the specification is written before the code and the code follows it, ideal when several teams depend on the contract. Or generated from annotations in the code, more comfortable on small projects. What matters is that it exists and is the source of truth.
What is the difference between an API and OpenAPI?
The API is the interface your program exposes; OpenAPI is the standard description of that interface. An API works without one, but every integration then starts from assumptions rather than from a contract that a tool can read as well.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851