-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Resolves a null pointer exception when returning a Dictionary containing known keys #2373
Conversation
@domaindrivendev Ping :) |
Hello, there @domaindrivendev :) Any news on this? |
@domaindrivendev is there any update on this PR and related issue? i'm having the same problem related to Dictionary and NRE during schema generation |
I just have the same problem here, using an example with I had to add an empty AdditionalProperties to not throw an error again: Is there any fix for that? On previous versions (<=6.2.3) it was working fine using |
@domaindrivendev ping |
Hi @domaindrivendev, @JakubHolovsky -- any news on this please? |
The issue is still present in 6.4.0 |
Any updates here? |
bump |
I just tripped over this issue after updating to 6.4.0. Would be nice to see it fixed. |
Looking forward fix as well. |
Same issue here. Can't update to 6.4.0. |
I am not the maintainer but trying to get all the attention to this so it finally gets merged. Stuck on older version here as well. |
@domaindrivendev hello, could you please approve this PR? We are all waiting months... |
@domaindrivendev could we possibly get a release with this fix in? Thank you! |
Waiting for this fix, too. Soon deploy would be awesome! |
When will a version with this fix be released? |
Waiting for this fix, too! |
This PR fixes a null pointer exception when having a API returning av Dictionary containing known keys
(ie a Dictionary<Enum, string>).
The problem was that the code tried to set
schema.AdditionalProperties.Nullable
without first checking ifschema.AdditionalPropertiesAllowed
was true. This resulted in a null point exception sinceschema.AdditionalProperties
is null whenschema.AdditionalPropertiesAllowed
is false.Fixes #2368