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 6380e48 commit 53e7b60Copy full SHA for 53e7b60
packages/cli/src/metadataGeneration/parameterGenerator.ts
@@ -439,7 +439,8 @@ export class ParameterGenerator {
439
}
440
441
if (parameterType.dataType === 'union') {
442
- return !parameterType.types.map(t => this.supportPathDataType(t)).some(t => t === false);
+ // skip undefined inside unions
443
+ return !parameterType.types.map(t => t.dataType === 'undefined' ? true : this.supportPathDataType(t)).some(t => t === false);
444
445
446
return false;
0 commit comments