OpenAPI is an API description format for REST APIs, establishing a vendor-neutral contract for endpoints, request parameters, and payloads.
The OpenAPI Specification (OAS)—originally known as Swagger until its donation to the Linux Foundation's OpenAPI Initiative in 2015—is a standard, programming language-agnostic interface description format for RESTful APIs. Written in either JSON or YAML, an OpenAPI document acts as an enforceable machine-readable contract describing available endpoints, HTTP methods, authentication schemes, input headers, request bodies, and expected HTTP response codes with corresponding JSON Schema models.
Validate API contracts or convert between formats using our OpenAPI Validator and OpenAPI to Postman Collection Converter.
| Specification | OpenAPI 3.0 | OpenAPI 3.1 (Latest) |
|---|---|---|
| Governing Body | OpenAPI Initiative (OAI / Linux Foundation) | OpenAPI Initiative (OAI) |
| JSON Schema Alignment | Extended subset of JSON Schema Draft 00 | 100% Fully Compatible with JSON Schema Draft 2020-12 |
| File Formats | YAML (.yaml, .yml) or JSON (.json) |
YAML or JSON |
| Webhooks Support | Limited / Callbacks only | First-class top-level webhooks key |
| Mutual TLS Support | No | Yes (mutualTLS security scheme) |
| License Identifier | Custom string | Standard SPDX License Expression |
An OpenAPI document comprises several standardized top-level sections:
openapi: 3.1.0
info:
title: DevFlow Developer API
version: 1.0.0
description: High-performance client-side tool endpoints and data pipelines.
servers:
- url: https://api.devflow.tools/v1
description: Production Gateway
paths:
/tools/{slug}:
get:
summary: Retrieve tool metadata by slug
operationId: getToolBySlug
parameters:
- name: slug
in: path
required: true
description: Unique URL identifier of the tool
schema:
type: string
example: "json-formatter"
responses:
'200':
description: Tool metadata retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Tool'
'404':
description: Tool not found
components:
schemas:
Tool:
type: object
required: [id, title, slug]
properties:
id:
type: string
title:
type: string
slug:
type: string
Many developers use "Swagger" and "OpenAPI" interchangeably, but there is a clear distinction:
The major breakthrough in OpenAPI 3.1 is 100% full parity with the JSON Schema Draft 2020-12 standard. In OAS 3.0, type definitions differed slightly from standard JSON Schema (for example, handling nullable: true instead of type: ["string", "null"]). OAS 3.1 also added native top-level support for Webhooks.
Export your Postman Collection v2.1 JSON file and paste it into our Postman to OpenAPI Converter to generate standard OpenAPI 3.0/3.1 contracts with populated endpoints and parameter schemas.
Yes. Running linters like Spectral or our in-browser OpenAPI Validator catches missing descriptions, invalid JSON schemas, and undocumented HTTP status codes before committing code.
Free, browser-based utilities to test, generate, and inspect OpenAPI Specification (formerly Swagger) payloads directly.
Validate, format, and summarize OpenAPI/Swagger specifications.
Convert OpenAPI/Swagger specs to Postman Collection v2.1 JSON.
Convert Postman Collection v2.1 JSON to OpenAPI 3.0.0 specification.