If I understand correctly, the check for case of a non-nullable, required Map is not properly implemented:
|
} else if (!cp.isNullable && mapOptionalDefaultToEmpty) { // non-nullable |
"mapOptionalDefaultToEmpty" is used for condition-check, it should be "mapDefaultToEmpty".
If I understand correctly, the check for case of a non-nullable, required Map is not properly implemented:
openapi-generator/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
Line 4292 in 27ed27f
"mapOptionalDefaultToEmpty" is used for condition-check, it should be "mapDefaultToEmpty".