Skip to content

Commit

Permalink
Fixed bug in OpenAPI generator
Browse files Browse the repository at this point in the history
  • Loading branch information
gius committed Jul 26, 2023
1 parent d2cde3f commit 5b5cf59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/generator/src/openapi/parsers/openApi3Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ export default class OpenApi3Parser implements ApiModel {
parentName: string,
input: OpenAPIV3.ParameterObject & Required<Pick<OpenAPIV3.ParameterObject, "schema">>
) {
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);
Expand Down

0 comments on commit 5b5cf59

Please sign in to comment.