Skip to content

Commit

Permalink
Fix printing empty notes (#15238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qluxzz committed Apr 17, 2023
1 parent 70a6106 commit 096aabd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap operations, L
response.isModel = !response.primitiveType;
}
});
// an empty string is truthy so we explicitly set empty notes to null
// So we don't print empty notes
if (op.notes != null && op.notes.isEmpty())
op.notes = null;
});

final boolean includeTime = anyOperationResponse(ops, response -> response.isDate || response.isDateTime) ||
Expand Down

0 comments on commit 096aabd

Please sign in to comment.