Skip to content

Comments

Jackson upgrade#1

Open
NodeAdam wants to merge 3 commits intomasterfrom
jackson-upgrade
Open

Jackson upgrade#1
NodeAdam wants to merge 3 commits intomasterfrom
jackson-upgrade

Conversation

@NodeAdam
Copy link

@NodeAdam NodeAdam commented Jun 8, 2017

NON_DEFAULT doesn't seem to be working in the newer version.
In the case of Location.altitude (which is optional), not setting a
value results in the field not being ignored as it appearing in the
pass.json file:

{
"latitude" : 37.33182,
"longitude" : -122.03118,
"altitude" : "NaN"
}

This is not a valid format which results in the Wallet app not reading
the pass.

I changed Include.NON_DEFAULT to Include.NON_NULL and set the default
altitude value to null. This results in the same behavior as before
the upgrade of Jackson.

Adam Krauser added 3 commits June 8, 2017 12:43
NON_DEFAULT doesn't seem to be working in the newer version.
In the case of Location.altitude (which is optional), not setting a
value results in the field not being ignored as it appearing in the
pass.json file:

{
    "latitude" : 37.33182,
    "longitude" : -122.03118,
    "altitude" : "NaN"
}

This is not a valid format which results in the Wallet app not reading
the pass.

I changed Include.NON_DEFAULT to Include.NON_NULL and set the default
altitude value to null. This results in the same behaviour as before
the upgrade of Jackson.
@NodeAdam NodeAdam requested a review from ivargrimstad June 8, 2017 11:27
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.

1 participant