mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-05 15:10:49 +00:00
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;
|
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) ||
|
final boolean includeTime = anyOperationResponse(ops, response -> response.isDate || response.isDateTime) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user