Skip to content

Commit 0ab3428

Browse files
committed
fix: hotfix, crash after 2.1 release
1 parent ae74ef9 commit 0ab3428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/openapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export function getSerializedValue(field: FieldModel, example: any) {
393393
// decode for better readability in examples: see https://github.com/Redocly/redoc/issues/1138
394394
return decodeURIComponent(serializeParameterValue(field, example));
395395
} else {
396-
return example;
396+
return String(example);
397397
}
398398
}
399399

0 commit comments

Comments
 (0)