From 0ab3428664f857ea07381686a2b4beb4c22b17c3 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 18 Aug 2023 06:54:16 +1000 Subject: [PATCH 1/2] fix: hotfix, crash after 2.1 release --- src/utils/openapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/openapi.ts b/src/utils/openapi.ts index 22424e90e7..17b5d619fd 100644 --- a/src/utils/openapi.ts +++ b/src/utils/openapi.ts @@ -393,7 +393,7 @@ export function getSerializedValue(field: FieldModel, example: any) { // decode for better readability in examples: see https://github.com/Redocly/redoc/issues/1138 return decodeURIComponent(serializeParameterValue(field, example)); } else { - return example; + return String(example); } } From a0731ed1050ead7938f916ae8cdb0910cbe3b617 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 18 Aug 2023 06:56:00 +1000 Subject: [PATCH 2/2] chore: v2.1.1 --- CHANGELOG.md | 9 +++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5ddc7bf0a..a29c8c7924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [2.1.1](https://github.com/Redocly/redoc/compare/v2.1.0...v2.1.1) (2023-08-17) + + +### Bug Fixes + +* hotfix, crash after 2.1 release ([0ab3428](https://github.com/Redocly/redoc/commit/0ab3428664f857ea07381686a2b4beb4c22b17c3)) + + + # [2.1.0](https://github.com/Redocly/redoc/compare/v2.0.0...v2.1.0) (2023-08-10) diff --git a/package-lock.json b/package-lock.json index 8dc2a3bce9..2a7c860249 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "redoc", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "redoc", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "@redocly/openapi-core": "^1.0.0-rc.2", diff --git a/package.json b/package.json index 295079c81c..9f792c8ca3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redoc", - "version": "2.1.0", + "version": "2.1.1", "description": "ReDoc", "repository": { "type": "git",