diff --git a/lib/services/schema-object-factory.ts b/lib/services/schema-object-factory.ts index 27dd5feb8..c0d786be1 100644 --- a/lib/services/schema-object-factory.ts +++ b/lib/services/schema-object-factory.ts @@ -122,7 +122,7 @@ export class SchemaObjectFactory { (property: ParameterObject & ParamWithTypeMetadata) => { const parameterObject = { ...(omit(property, 'enumName') as ParameterObject), - in: 'query', + in: param.in ?? 'query', required: property.required ?? true }; return parameterObject;