diff --git a/src/services/RedocNormalizedOptions.ts b/src/services/RedocNormalizedOptions.ts index 282f4eb1..219ad286 100644 --- a/src/services/RedocNormalizedOptions.ts +++ b/src/services/RedocNormalizedOptions.ts @@ -112,11 +112,18 @@ export class RedocNormalizedOptions { return true; } - if (typeof value === 'string') { - return value.split(',').map(ext => ext.trim()); + if (typeof value !== 'string') { + return value } - return value; + switch (value) { + case 'true': + return true + case 'false': + return false + default: + return value.split(',').map(ext => ext.trim()); + } } static normalizePayloadSampleIdx(value: RedocRawOptions['payloadSampleIdx']): number {