Skip to content

Fix "defaultToEmptyContainer" not properly implemented for non-nullable, required Map#21953

Merged
wing328 merged 4 commits intoOpenAPITools:masterfrom
MarcoZurich:master
Sep 13, 2025
Merged

Fix "defaultToEmptyContainer" not properly implemented for non-nullable, required Map#21953
wing328 merged 4 commits intoOpenAPITools:masterfrom
MarcoZurich:master

Conversation

@MarcoZurich
Copy link
Copy Markdown
Contributor

@MarcoZurich MarcoZurich commented Sep 12, 2025

to close #21890

Fixed the problem and added a test

@wing328
Copy link
Copy Markdown
Member

wing328 commented Sep 12, 2025

thanks for the fix

cc @OpenAPITools/generator-core-team since this touches default codegen

@wing328 wing328 changed the title Fix for Issue 21890 Fix "defaultToEmptyContainer" not properly implemented for non-nullable, required Map Sep 13, 2025
@wing328 wing328 added this to the 7.16.0 milestone Sep 13, 2025
@wing328
Copy link
Copy Markdown
Member

wing328 commented Sep 13, 2025

lgtm. thanks for the fix

@wing328 wing328 merged commit 59eac42 into OpenAPITools:master Sep 13, 2025
14 checks passed
Goopher pushed a commit to Goopher/openapi-generator that referenced this pull request Sep 16, 2025
…le, required Map (OpenAPITools#21953)

* Issue 21890: Fixed flag to use for check of required, non-nullable map

* Issue 21890: added test (first draft)

* Issue 21890: Added Test

---------

Co-authored-by: Marco <[email protected]>
rajvesh pushed a commit to rajvesh/openapi-generator that referenced this pull request Dec 25, 2025
…le, required Map (OpenAPITools#21953)

* Issue 21890: Fixed flag to use for check of required, non-nullable map

* Issue 21890: added test (first draft)

* Issue 21890: Added Test

---------

Co-authored-by: Marco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java Code Generator: Additional Property "defaultToEmptyContainer" not properly implemented for non-nullable, required Map (object)

2 participants