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", 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); } }