diff --git a/packages/generator/src/openapi/parsers/openApi3Parser.ts b/packages/generator/src/openapi/parsers/openApi3Parser.ts index 09e3709..94c0489 100644 --- a/packages/generator/src/openapi/parsers/openApi3Parser.ts +++ b/packages/generator/src/openapi/parsers/openApi3Parser.ts @@ -280,8 +280,7 @@ export default class OpenApi3Parser implements ApiModel { parentName: string, input: OpenAPIV3.ParameterObject & Required> ) { - const type = this.parseSchemaObject(parentName, input.schema); - const parameter = new EntityProperty(cleanParameterName(input.name), type); + const parameter = this.parseEntityProperty(parentName, cleanParameterName(input.name), input.schema); parameter.description = input.description; if (input.required) { parameter.addRestriction(Restriction.required, true);