-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: #187
- Loading branch information
Showing
12 changed files
with
75 additions
and
77 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 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
22 changes: 11 additions & 11 deletions
22
...dle/openapi/generator/java/generator/array/__snapshots__/ValidatorClassGeneratorTest.snap
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
arrayPojo=[ | ||
private class Validator { | ||
private boolean isValueValid() { | ||
if(value != null) { | ||
return value.stream().allMatch(this::isValueValueValid); | ||
private boolean isItemsValid() { | ||
if(items != null) { | ||
return items.stream().allMatch(this::isItemsValueValid); | ||
} | ||
|
||
return false; | ||
} | ||
|
||
private boolean isValueValueValid(Double valueValue) { | ||
private boolean isItemsValueValid(Double itemsValue) { | ||
return true; | ||
} | ||
|
||
private boolean isValid() { | ||
return isValueValid(); | ||
return isItemsValid(); | ||
} | ||
} | ||
] | ||
|
||
|
||
arrayPojoWithUniqueItems=[ | ||
private class Validator { | ||
private boolean isValueValid() { | ||
if(value != null) { | ||
return hasValueUniqueItems() | ||
&& value.stream().allMatch(this::isValueValueValid); | ||
private boolean isItemsValid() { | ||
if(items != null) { | ||
return hasItemsUniqueItems() | ||
&& items.stream().allMatch(this::isItemsValueValid); | ||
} | ||
|
||
return false; | ||
} | ||
|
||
private boolean isValueValueValid(Double valueValue) { | ||
private boolean isItemsValueValid(Double itemsValue) { | ||
return true; | ||
} | ||
|
||
private boolean isValid() { | ||
return isValueValid(); | ||
return isItemsValid(); | ||
} | ||
} | ||
] |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ java.util.Objects | |
@Override | ||
public int hashCode() { | ||
return Objects.hash( | ||
value | ||
items | ||
); | ||
} | ||
] | ||
|
4 changes: 2 additions & 2 deletions
4
...napi/generator/java/generator/shared/misc/__snapshots__/PojoConstructorGeneratorTest.snap
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
Oops, something went wrong.