forked from loafle/openapi-generator-original
Fix printing empty notes (#15238)
This commit is contained in:
parent
70a6106626
commit
096aabd360
@ -373,6 +373,10 @@ public class ElmClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
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) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user