OpenAPI Versioning

OpenAPI handles versioning through the info.version field (using SemVer), the deprecated flag on individual operations, parameters, and schemas, and multiple server entries for different API versions. Tools like oasdiff enable automated breaking change detection between OpenAPI spec versions.

API entry from apis.yml

apis.yml Raw ↑
aid: versioning-protocols:openapi-versioning
name: OpenAPI Versioning
description: OpenAPI handles versioning through the info.version field (using SemVer), the deprecated
  flag on individual operations, parameters, and schemas, and multiple server entries for different API
  versions. Tools like oasdiff enable automated breaking change detection between OpenAPI spec versions.
humanURL: https://openapispec.com/docs/how/how-does-openapi-handle-api-versioning/
tags:
- OpenAPI
- API Specification
- Breaking Changes
- Deprecation
properties:
- type: Documentation
  url: https://openapispec.com/docs/how/how-does-openapi-handle-api-versioning/