Skip to content

Commit

Permalink
fix: hotfix, crash after 2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Aug 17, 2023
1 parent ae74ef9 commit 9e14e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 9e14e14

Please sign in to comment.