From 0ab3428664f857ea07381686a2b4beb4c22b17c3 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 18 Aug 2023 06:54:16 +1000 Subject: [PATCH] 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); } }