forked from loafle/openapi-generator-original
fix boolean operators precedence (#4158)
This commit is contained in:
committed by
William Cheng
parent
dd08ea7a6b
commit
756984adc9
@@ -505,7 +505,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
|
||||
CodegenModel model = (CodegenModel) v;
|
||||
for (CodegenProperty param : model.vars) {
|
||||
if (!addedTimeImport
|
||||
&& "time.Time".equals(param.dataType) || ("[]time.Time".equals(param.dataType))) {
|
||||
&& ("time.Time".equals(param.dataType) || ("[]time.Time".equals(param.dataType)))) {
|
||||
imports.add(createMapping("import", "time"));
|
||||
addedTimeImport = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user