-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from coinse/dev
New bugs collected after GitHub Action Run on Feb 2
- Loading branch information
Showing
23 changed files
with
455 additions
and
4,900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java | ||
index c1ae3cc8fbb..4b3dcc56612 100644 | ||
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java | ||
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java | ||
@@ -1003,21 +1003,21 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code | ||
if (items.getMinimum() != null && items.getMaximum() != null) { | ||
return String.format(Locale.ROOT, "@DecimalMin(value = \"%s\", inclusive = %s) @DecimalMax(value = \"%s\", inclusive = %s)", | ||
items.getMinimum(), | ||
- Optional.ofNullable(items.getExclusiveMinimum()).orElse(Boolean.FALSE), | ||
+ !Optional.ofNullable(items.getExclusiveMinimum()).orElse(Boolean.FALSE), | ||
items.getMaximum(), | ||
- Optional.ofNullable(items.getExclusiveMaximum()).orElse(Boolean.FALSE)); | ||
+ !Optional.ofNullable(items.getExclusiveMaximum()).orElse(Boolean.FALSE)); | ||
} | ||
|
||
if (items.getMinimum() != null) { | ||
return String.format(Locale.ROOT, "@DecimalMin( value = \"%s\", inclusive = %s)", | ||
items.getMinimum(), | ||
- Optional.ofNullable(items.getExclusiveMinimum()).orElse(Boolean.FALSE)); | ||
+ !Optional.ofNullable(items.getExclusiveMinimum()).orElse(Boolean.FALSE)); | ||
} | ||
|
||
if (items.getMaximum() != null) { | ||
return String.format(Locale.ROOT, "@DecimalMax( value = \"%s\", inclusive = %s)", | ||
items.getMaximum(), | ||
- Optional.ofNullable(items.getExclusiveMaximum()).orElse(Boolean.FALSE)); | ||
+ !Optional.ofNullable(items.getExclusiveMaximum()).orElse(Boolean.FALSE)); | ||
} | ||
|
||
return ""; |
Oops, something went wrong.