File tree Expand file tree Collapse file tree
modules/openapi-generator/src/test/java/org/openapitools/codegen/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3791,7 +3791,8 @@ public void testRequiredAndNullableAreBothTrue() throws IOException {
37913791 TestUtils .assertFileContains (
37923792 modelFile ,
37933793 "} else if (!jsonObj.get(\" ids\" ).isJsonArray() && !jsonObj.get(\" ids\" ).isJsonNull()) {" ,
3794- "if (!jsonObj.get(\" users\" ).isJsonArray() && !jsonObj.get(\" users\" ).isJsonNull()) {" ,
3794+ "if (jsonObj.get(\" users\" ) != null && !jsonObj.get(\" users\" ).isJsonNull()) {" ,
3795+ "if (!jsonObj.get(\" users\" ).isJsonArray()) {" ,
37953796 "if (jsonObj.get(\" user\" ) != null && !jsonObj.get(\" user\" ).isJsonNull()) {" ,
37963797 "if (jsonObj.get(\" role\" ) != null && !jsonObj.get(\" role\" ).isJsonNull()) {" ,
37973798 "if (jsonObj.get(\" custom\" ) != null && !jsonObj.get(\" custom\" ).isJsonNull()) {" );
You can’t perform that action at this time.
0 commit comments