Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
Fix allOf in requestBodies generation
Browse files Browse the repository at this point in the history
close #317
  • Loading branch information
fabien0102 committed Nov 6, 2020
1 parent 96561e7 commit 37e7be0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scripts/import-open-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,11 @@ export interface ${componentName}PathParams {
}${
needARequestBodyComponent
? `
export interface ${componentName}RequestBody ${requestBodyTypes}
export ${
requestBodyTypes.includes("&")
? `type ${componentName}RequestBody =`
: `interface ${componentName}RequestBody`
} ${requestBodyTypes}
`
: ""
}
Expand Down

0 comments on commit 37e7be0

Please # to comment.