Skip to content

Commit

Permalink
Added Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 committed Jan 14, 2021
1 parent 9d79fec commit 3b5f8a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generators/operationGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ function buildRequestBody({
const mapper = requestBody[0].mapper;
let required: boolean = requestBody[0].required ?? false;

// If one of the requestbody in the spec has required set to true,
// we do not want to look into others.
if (!required) {
for (const rb of requestBody) {
required = rb.required
Expand Down

0 comments on commit 3b5f8a7

Please sign in to comment.