Skip to content

294 handle optional parameters fix #315

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

Merged
merged 1 commit into from
Sep 25, 2019
Merged

294 handle optional parameters fix #315

merged 1 commit into from
Sep 25, 2019

Conversation

vojtapol
Copy link
Member

Resolves #294 and fixes #310

@oliemansm I apologize, the previous PR contained an error.

In case the argument was omitted the value was null and it was passed to Jackson deserializer. The deserializer converts null to Optional.empty() thus defeating the purpose of the PR.

This fix instead bypasses Jackson completely when the value is null and uses Jackson only if the value was actually provided.

@oliemansm oliemansm merged commit b24fc4c into graphql-java-kickstart:master Sep 25, 2019
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

Successfully merging this pull request may close these issues.

Absence of Optional arguments are represented with Optional.empty() instead of null
2 participants