Skip to content

[main-lts] Add initialize empty collection parameter #1131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main-lts
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 6, 2025

Backport: #1129

Note: CI is not automatically triggered on backported PRs, please comment 'ok to test' to launch Jenkins jobs

Please make sure that your PR meets the following requirements:

  • You have read the contributors guide
  • Your code is properly formatted according to our code style
  • Pull Request title contains the target branch if not targeting main: [0.9.x] Subject
  • Pull Request contains link to the issue
  • Pull Request contains link to any dependent or related Pull Request
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket

Enables the generator to initialize collections as an empty collection instead of null

this PR fixes #734

  1. Introducing a new configuration property initialize-empty-collections, wich defaults to false
  2. When parameter is set, collections will be initialized as an empty set or an empty list, instead of null

* Add initialize empty collection parameter

* Fixed wrong spec name and wrong import in initialize-empty-collection test

---------

Co-authored-by: Sebastian Brune <[email protected]>
Co-authored-by: Frederik Kischewski <[email protected]>
@github-actions github-actions bot requested a review from a team as a code owner May 6, 2025 19:10
@ricardozanini ricardozanini reopened this May 6, 2025
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.

2 participants