From 1dcfc66ecc613089363c2e7aa867023614b2b97a Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Fri, 13 Feb 2026 08:26:28 -0500 Subject: [PATCH] feat: adds support for 3.1.2 Signed-off-by: Vincent Biret --- CLAUDE.md | 2 +- README.md | 6 +++--- test/unit/core/plugins/oas31/fn.js | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bbd932ce843..f58b0b4673b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -52,7 +52,7 @@ This repository publishes **three different npm packages**: ### OpenAPI Specification Compatibility - **Current Support:** OpenAPI 2.0, 3.0.x, 3.1.x -- **Latest Version:** v5.31.0 (supports up to OpenAPI 3.1.1) +- **Latest Version:** v5.31.0 (supports up to OpenAPI 3.1.2) ### License diff --git a/README.md b/README.md index 80bca1690ee..c7f74defcfa 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ If you are looking for plain ol' HTML/JS/CSS, [download the latest release](http ## Compatibility The OpenAPI Specification has undergone 5 revisions since initial creation in 2010. Compatibility between Swagger UI and the OpenAPI Specification is as follows: -| Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes | -|--------------------|--------------|------------------------------------------------------|-----------------------------------------------------------------------| -| 5.19.0 | 2025-02-17 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.1.0, 3.1.1 | [tag v5.19.0](https://github.com/swagger-api/swagger-ui/tree/v5.19.0) | +| Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes | +|--------------------|--------------|-------------------------------------------------------------|-----------------------------------------------------------------------| +| 5.19.0 | 2025-02-17 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.1.0, 3.1.1, 3.1.2 | [tag v5.19.0](https://github.com/swagger-api/swagger-ui/tree/v5.19.0) | | 5.0.0 | 2023-06-12 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0 | [tag v5.0.0](https://github.com/swagger-api/swagger-ui/tree/v5.0.0) | | 4.0.0 | 2021-11-03 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3 | [tag v4.0.0](https://github.com/swagger-api/swagger-ui/tree/v4.0.0) | | 3.18.3 | 2018-08-03 | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3 | [tag v3.18.3](https://github.com/swagger-api/swagger-ui/tree/v3.18.3) | diff --git a/test/unit/core/plugins/oas31/fn.js b/test/unit/core/plugins/oas31/fn.js index c51311495ec..e1ae3180bd8 100644 --- a/test/unit/core/plugins/oas31/fn.js +++ b/test/unit/core/plugins/oas31/fn.js @@ -10,6 +10,7 @@ describe("isOAS30", function () { it("should recognize valid OAS3 version values", function () { expect(isOAS31Shorthand("3.1.0")).toEqual(true) expect(isOAS31Shorthand("3.1.1")).toEqual(true) + expect(isOAS31Shorthand("3.1.2")).toEqual(true) expect(isOAS31Shorthand("3.1.25")).toEqual(true) })