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 responseBodies generation
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cruz committed Dec 20, 2021
1 parent c77e52e commit d914ac4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/import-open-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ export const generateRestfulComponent = (
needAResponseComponent
? `
export ${
responseTypes.includes("|") ? `type ${componentName}Response =` : `interface ${componentName}Response`
responseTypes.includes("|") || responseTypes.includes("&")
? `type ${componentName}Response =`
: `interface ${componentName}Response`
} ${responseTypes}
`
: ""
Expand Down

0 comments on commit d914ac4

Please sign in to comment.