SlideShare a Scribd company logo
4
Most read
6
Most read
15
Most read
Introduction to
OpenAPI 3.1
Darrel Miller
Ron Ratovsky
OAI Technical Steering Committee Members
Introducing OpenAPI Version 3.1
Proprietary & Confidential
3
OpenAPI 3.1
Proprietary & Confidential
4
OpenAPI
2.0
2014
2015
2016
2017
OpenAPI
3.0
OpenAPI
3.0.2
2018
2019
Alternative
Schema
Pilot
OpenAPI
3.1
2021
Overlays
OpenAPI Specification History
Proprietary & Confidential
5
OpenAPI Versioning
3.0
The OpenAPI Specification is versioned using Semantic Versioning 2.0.0
(semver) and follows the semver specification.
3.0.3
Each new minor version of the OpenAPI Specification SHALL allow any
OpenAPI document that is valid against any previous minor version of the
Specification, within the same major version, to be updated to the new
Specification version with equivalent semantics. Such an update MUST
only require changing the openapi property to the new minor version.
3.1
Occasionally, non-backwards compatible changes may be made in minor
versions of the OAS where impact is believed to be low relative to the
benefit provided.
Yay SemVer!
Clarity!
Err SemVer?
Need more
precision!
Boo SemVer!
Proprietary & Confidential
6
Info Object
https://spdx.org/licenses/
openapi: 3.1.0
info:
title: My Demo API
version: 1.0.0
summary: An API with examples of features in 3.1
license:
name: Apache 2.0
identifier: Apache-2.0 SPDX Identifier for machine
processing
Proprietary & Confidential
7
Webhooks
openapi: 3.1.0
info:
title: My Demo API
version: 1.0.0
summary: An API with examples of features in 3.1
webhooks:
newThingAlert:
$ref: '#/components/pathItems/newThingAlert'
components:
pathItems:
newThingAlert:
summary: Notification that a new thing has been created
post:
requestBody:
content:
applicaton/json:
schema:
type: object
properties:
thingName:
type: string
Reusable Path Items
Out-of-band registered
callbacks
Proprietary & Confidential
8
paths:
/todos:
post:
requestBody:
content:
application/json:
schema:
summary: A new todo object
description: |
This is where where a new todo
object can be described.
$ref: "#/components/schemas/todo“
responses:
201:
description: Created
components:
schemas:
todo:
title: A todo object
type: object
properties:
id:
type: integer
description:
type: string
$ref
SHOULD
override
Correction: The ability to override values
is only within the Reference Object and
cannot be used inside the Schema Object
Proprietary & Confidential
9
openapi: 3.1.0
info:
title: Security Demo
version: 1.0.0
paths:
/todos:
post:
...
security:
clientCertificate:
- todo.write
components:
securitySchemes:
clientCertificate:
type: mutualTLS
Security
Roles/Claims for non-OAuth
schemes
New security scheme type for client
certificates
Proprietary & Confidential
10
OpenAPI Documents
paths
webhooks
components
Proprietary & Confidential
11
Odds and Ends Allowed request body for all HTTP methods
Added multipart/form-data support for encoding
object
Path Item parameters must be defined
Removed definition of some formats e.g. byte,
binary
Responses are now optional
Proprietary & Confidential
12
OpenAPI & JSON Schema
OpenAPI 3.0
OpenAPI
Schema
OpenAPI Tools JSON Schema Tools
OpenAPI 3.1
JSON Schema
Draft 2020-09
OpenAPI Tools JSON Schema Tools
Partially
Broken
OpenAPI
Schema Tools
Proprietary & Confidential
13
Full JSON Schema Support
- Full type support (nullable is gone)
- Formats are… not enforced
- exclusiveMinimum/Maximum, readOnly/writeOnly
- file uploads, contentEncoding, contentMediaType
- $schema and dialects (jsonSchemaDialect)
- $id
Proprietary & Confidential
14
Relative References
URIs
(relative to document)
• Reference Object
• Path Item Object
• $ref
• Link Object
• operationRef
URLs
(relative to servers)
• External Documentation
• License
• Security URLs
Proprietary & Confidential
15
The Future
Overlays: Separate document that augments another API description
Reusable groups: $ref more than one component
Alternative Schemas
Optional and Multi-segment Paths
Disambiguating based on query
Digital Signatures and Encryption
Discovery mechanism for security credentials (jwt, apikey, etc)

More Related Content

PPTX
API Docs with OpenAPI 3.0
PDF
OpenAPI 3.0, And What It Means for the Future of Swagger
PDF
Designing APIs with OpenAPI Spec
PPTX
API Design- Best Practices
PPTX
Introducing Swagger
PPTX
Restful api
PPTX
Rest API Security - A quick understanding of Rest API Security
PDF
Swagger With REST APIs.pptx.pdf
API Docs with OpenAPI 3.0
OpenAPI 3.0, And What It Means for the Future of Swagger
Designing APIs with OpenAPI Spec
API Design- Best Practices
Introducing Swagger
Restful api
Rest API Security - A quick understanding of Rest API Security
Swagger With REST APIs.pptx.pdf

What's hot (20)

PDF
API Gateway How-To: The Many Ways to Apply the Gateway Pattern
PPTX
Api-First service design
PDF
How Secure Are Your APIs?
PPT
Effective API Design
PPTX
introduction about REST API
PDF
Building APIs with the OpenApi Spec
PDF
What is REST API? REST API Concepts and Examples | Edureka
PDF
Architecting an Enterprise API Management Strategy
PPTX
DevOps and Continuous Delivery Reference Architectures (including Nexus and o...
PPTX
API Strategy Introduction
PPTX
REST-API introduction for developers
PPTX
API Governance in the Enterprise
PDF
Introduction to CICD
PPSX
APIs as a Product Strategy
PDF
APIsecure 2023 - API orchestration: to build resilient applications, Cherish ...
PDF
The Beginner’s Guide To Spring Cloud
PDF
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
ODP
Kong API Gateway
PDF
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
PPTX
Adopting a Design-First Approach to API Development with SwaggerHub
API Gateway How-To: The Many Ways to Apply the Gateway Pattern
Api-First service design
How Secure Are Your APIs?
Effective API Design
introduction about REST API
Building APIs with the OpenApi Spec
What is REST API? REST API Concepts and Examples | Edureka
Architecting an Enterprise API Management Strategy
DevOps and Continuous Delivery Reference Architectures (including Nexus and o...
API Strategy Introduction
REST-API introduction for developers
API Governance in the Enterprise
Introduction to CICD
APIs as a Product Strategy
APIsecure 2023 - API orchestration: to build resilient applications, Cherish ...
The Beginner’s Guide To Spring Cloud
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Kong API Gateway
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Adopting a Design-First Approach to API Development with SwaggerHub
Ad

Similar to Introducing OpenAPI Version 3.1 (20)

PDF
9 Months and Counting with Jeff Borek of IBM OpenAPI Meetup 2016 09 15
PDF
Schema-First API Design
PPTX
The Swagger Format becomes the Open API Specification: Standardizing descript...
PDF
apidays Paris 2024 - Walk the OpenAPI Talk, Moonwalk the Developer Experience...
PDF
Presentation at the 2016 Linux Foundation Collab Summit
PPTX
SVQdotNET: Building APIs with OpenApi
PPTX
Open API Initiative: Six months and counting
PPTX
OpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
PDF
Api clarity webinar
PDF
OpenAPI Intro (1).pdf
PDF
Enforcing API Design Rules for High Quality Code Generation
PDF
Dead Simple APIs with OpenAPI
PDF
A Snapshot of API Design Trends In 2019
PDF
Testing libraries for fun & profit. Beware: Increased productivity ahead
PPTX
OWASP PDX May 2016 : Scanning with Swagger (OAS) 2.0
PDF
JSON API Specificiation
PDF
The 12 facets of the OpenAPI standard.pdf
PDF
OpenAPI/AsyncAPI Support in Oxygen
PDF
Always up to date, testable and maintainable documentation with OpenAPI
9 Months and Counting with Jeff Borek of IBM OpenAPI Meetup 2016 09 15
Schema-First API Design
The Swagger Format becomes the Open API Specification: Standardizing descript...
apidays Paris 2024 - Walk the OpenAPI Talk, Moonwalk the Developer Experience...
Presentation at the 2016 Linux Foundation Collab Summit
SVQdotNET: Building APIs with OpenApi
Open API Initiative: Six months and counting
OpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
Api clarity webinar
OpenAPI Intro (1).pdf
Enforcing API Design Rules for High Quality Code Generation
Dead Simple APIs with OpenAPI
A Snapshot of API Design Trends In 2019
Testing libraries for fun & profit. Beware: Increased productivity ahead
OWASP PDX May 2016 : Scanning with Swagger (OAS) 2.0
JSON API Specificiation
The 12 facets of the OpenAPI standard.pdf
OpenAPI/AsyncAPI Support in Oxygen
Always up to date, testable and maintainable documentation with OpenAPI
Ad

More from SmartBear (20)

PPTX
Enforcing Your Organization's API Design Standards with SwaggerHub
PPTX
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
PPTX
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
PPTX
How LISI Automotive Accelerated Application Delivery with SwaggerHub
PPTX
Standardising APIs: Powering the Platform Economy in Financial Services
PPTX
Getting Started with API Standardization in SwaggerHub
PPTX
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
PPTX
Effective API Lifecycle Management
PDF
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
PDF
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
PPTX
Artificial intelligence for faster and smarter software testing - Galway Mee...
PDF
Successfully Implementing BDD in an Agile World
PPTX
The Best Kept Secrets of Code Review | SmartBear Webinar
PPTX
How Capital One Scaled API Design to Deliver New Products Faster
PPTX
Testing Without a GUI Using TestComplete
PPTX
Hidden Treasure - TestComplete Script Extensions
PDF
How Bdd Can Save Agile
PPTX
API Automation and TDD to Implement Master Data Survivorship Rules
PDF
Support Rapid Systems Growth with a Design-First Approach
PDF
Maximize Test Automation with a Risk-Based Approach
Enforcing Your Organization's API Design Standards with SwaggerHub
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
How LISI Automotive Accelerated Application Delivery with SwaggerHub
Standardising APIs: Powering the Platform Economy in Financial Services
Getting Started with API Standardization in SwaggerHub
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
Effective API Lifecycle Management
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
Artificial intelligence for faster and smarter software testing - Galway Mee...
Successfully Implementing BDD in an Agile World
The Best Kept Secrets of Code Review | SmartBear Webinar
How Capital One Scaled API Design to Deliver New Products Faster
Testing Without a GUI Using TestComplete
Hidden Treasure - TestComplete Script Extensions
How Bdd Can Save Agile
API Automation and TDD to Implement Master Data Survivorship Rules
Support Rapid Systems Growth with a Design-First Approach
Maximize Test Automation with a Risk-Based Approach

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Approach and Philosophy of On baking technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Machine Learning_overview_presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
1. Introduction to Computer Programming.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
MYSQL Presentation for SQL database connectivity
Assigned Numbers - 2025 - Bluetooth® Document
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Approach and Philosophy of On baking technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
MIND Revenue Release Quarter 2 2025 Press Release
Machine Learning_overview_presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Group 1 Presentation -Planning and Decision Making .pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Machine learning based COVID-19 study performance prediction
1. Introduction to Computer Programming.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx

Introducing OpenAPI Version 3.1

  • 1. Introduction to OpenAPI 3.1 Darrel Miller Ron Ratovsky OAI Technical Steering Committee Members
  • 5. Proprietary & Confidential 5 OpenAPI Versioning 3.0 The OpenAPI Specification is versioned using Semantic Versioning 2.0.0 (semver) and follows the semver specification. 3.0.3 Each new minor version of the OpenAPI Specification SHALL allow any OpenAPI document that is valid against any previous minor version of the Specification, within the same major version, to be updated to the new Specification version with equivalent semantics. Such an update MUST only require changing the openapi property to the new minor version. 3.1 Occasionally, non-backwards compatible changes may be made in minor versions of the OAS where impact is believed to be low relative to the benefit provided. Yay SemVer! Clarity! Err SemVer? Need more precision! Boo SemVer!
  • 6. Proprietary & Confidential 6 Info Object https://spdx.org/licenses/ openapi: 3.1.0 info: title: My Demo API version: 1.0.0 summary: An API with examples of features in 3.1 license: name: Apache 2.0 identifier: Apache-2.0 SPDX Identifier for machine processing
  • 7. Proprietary & Confidential 7 Webhooks openapi: 3.1.0 info: title: My Demo API version: 1.0.0 summary: An API with examples of features in 3.1 webhooks: newThingAlert: $ref: '#/components/pathItems/newThingAlert' components: pathItems: newThingAlert: summary: Notification that a new thing has been created post: requestBody: content: applicaton/json: schema: type: object properties: thingName: type: string Reusable Path Items Out-of-band registered callbacks
  • 8. Proprietary & Confidential 8 paths: /todos: post: requestBody: content: application/json: schema: summary: A new todo object description: | This is where where a new todo object can be described. $ref: "#/components/schemas/todo“ responses: 201: description: Created components: schemas: todo: title: A todo object type: object properties: id: type: integer description: type: string $ref SHOULD override Correction: The ability to override values is only within the Reference Object and cannot be used inside the Schema Object
  • 9. Proprietary & Confidential 9 openapi: 3.1.0 info: title: Security Demo version: 1.0.0 paths: /todos: post: ... security: clientCertificate: - todo.write components: securitySchemes: clientCertificate: type: mutualTLS Security Roles/Claims for non-OAuth schemes New security scheme type for client certificates
  • 10. Proprietary & Confidential 10 OpenAPI Documents paths webhooks components
  • 11. Proprietary & Confidential 11 Odds and Ends Allowed request body for all HTTP methods Added multipart/form-data support for encoding object Path Item parameters must be defined Removed definition of some formats e.g. byte, binary Responses are now optional
  • 12. Proprietary & Confidential 12 OpenAPI & JSON Schema OpenAPI 3.0 OpenAPI Schema OpenAPI Tools JSON Schema Tools OpenAPI 3.1 JSON Schema Draft 2020-09 OpenAPI Tools JSON Schema Tools Partially Broken OpenAPI Schema Tools
  • 13. Proprietary & Confidential 13 Full JSON Schema Support - Full type support (nullable is gone) - Formats are… not enforced - exclusiveMinimum/Maximum, readOnly/writeOnly - file uploads, contentEncoding, contentMediaType - $schema and dialects (jsonSchemaDialect) - $id
  • 14. Proprietary & Confidential 14 Relative References URIs (relative to document) • Reference Object • Path Item Object • $ref • Link Object • operationRef URLs (relative to servers) • External Documentation • License • Security URLs
  • 15. Proprietary & Confidential 15 The Future Overlays: Separate document that augments another API description Reusable groups: $ref more than one component Alternative Schemas Optional and Multi-segment Paths Disambiguating based on query Digital Signatures and Encryption Discovery mechanism for security credentials (jwt, apikey, etc)

Editor's Notes

  • #2: Member of TSC
  • #6: Easy to migrate existing body of descriptions to new version SemVer sucks for specs! Major and minor
  • #16: -45