Skip to content
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

"Init with null when nullable" property doesn't work when making multiple files #414

Open
matteo-bloomandwild opened this issue Jan 11, 2023 · 1 comment

Comments

@matteo-bloomandwild
Copy link

Hello, I noticed that if I generate a model with all inner classes in the same file, and configured to initialise with null everything that is nullable, the plugin works as expected.
If I generate the exact same json, with the exact same config except not using a single file, the non-native fields are initialised with the corresponding inner object, not null.

@eirnym
Copy link

eirnym commented Jan 11, 2023

Hi @matteo-bloomandwild, could you provide a minimal working example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants