We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc7a95 commit c6eaa02Copy full SHA for c6eaa02
src/services/RedocNormalizedOptions.ts
@@ -112,11 +112,18 @@ export class RedocNormalizedOptions {
112
return true;
113
}
114
115
- if (typeof value === 'string') {
116
- return value.split(',').map(ext => ext.trim());
+ if (typeof value !== 'string') {
+ return value
117
118
119
- return value;
+ switch (value) {
120
+ case 'true':
121
+ return true
122
+ case 'false':
123
+ return false
124
+ default:
125
+ return value.split(',').map(ext => ext.trim());
126
+ }
127
128
129
static normalizePayloadSampleIdx(value: RedocRawOptions['payloadSampleIdx']): number {
0 commit comments