-
Notifications
You must be signed in to change notification settings - Fork 161
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
Fix NPE with unnamed schemas in {one,any,all}-of
#220
Conversation
result.putAll(getUnnamedSchemas(composedSchema.getAllOf(), "all-of")); | ||
result.putAll(getUnnamedSchemas(composedSchema.getOneOf(), "one-of")); | ||
result.putAll(getUnnamedSchemas(composedSchema.getAnyOf(), "any-of")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick and dirty workaround - naming the unnamed schemas in order of their appearance in the list.
if (schemas == null) { | ||
return result; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list is sometimes null (in the diff case) which throws nullptr
@joschi another fix! this has been throwing a ton of null pointers for us in production so thought I'd put in a quick fix. Would love a review/release! |
Hey @joschi! Any chance we could get a review+release of this? It's been pretty noisy in our diffs, would like to avoid forking if possible 😢 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsdatta Sorry for the delay. The PR looks good to me. 👍
Thanks a lot for your contribution!
{one,any,all}-of
Fixes #176