Skip to content

Commit

Permalink
fix: ignore params for which type is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jun 21, 2023
1 parent 5851e46 commit 5a8d06b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/services/parameters-metadata-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { DECORATORS } from '../constants';
import { isBodyParameter } from '../utils/is-body-parameter.util';
import { ModelPropertiesAccessor } from './model-properties-accessor';
import {
ParamsWithType,
ParamWithTypeMetadata
ParamWithTypeMetadata,
ParamsWithType
} from './parameter-metadata-accessor';

export class ParametersMetadataMapper {
Expand All @@ -18,7 +18,7 @@ export class ParametersMetadataMapper {
parameters: ParamsWithType
): ParamWithTypeMetadata[] {
const properties = flatMap(parameters, (param: ParamWithTypeMetadata) => {
if (!param || param.type === Object) {
if (!param || param.type === Object || !param.type) {
return undefined;
}
if (param.name) {
Expand Down

0 comments on commit 5a8d06b

Please sign in to comment.