diff --git a/src/utils/openapi.ts b/src/utils/openapi.ts index 22424e90..17b5d619 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); } }