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

Update RestManager.java #82

Merged
merged 2 commits into from
Dec 23, 2019
Merged

Update RestManager.java #82

merged 2 commits into from
Dec 23, 2019

Conversation

nimo23
Copy link
Contributor

@nimo23 nimo23 commented Dec 17, 2019

Description

Added "JacksonJsonProvider.class" to explicitly declare the jackson processor for marshalling. Because without, it conflicts with other libs if they are using other json-providers (for example, Json-B).

Fixes # (issue)
Marshalling exceptions if other providers are also on the same classpath.

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Added "JacksonJsonProvider.class" to explicitly declare the jackson processor for marshalling. Because without, it conflicts with other libs if they are using other json-providers (for example, Json-B).
@nimo23
Copy link
Contributor Author

nimo23 commented Dec 17, 2019

Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "isDerived" (class pl.zankowski.iextrading4j.api.forex.HistoricalCurrencyRate), not marked as ignorable (4 known properties: "symbol", "date", "rate", "timestamp"])

Please provide unknown property in class.

@WojciechZankowski
Copy link
Owner

Thank you for your pull request!

@WojciechZankowski WojciechZankowski merged commit 584bd86 into WojciechZankowski:master Dec 23, 2019
@nimo23 nimo23 deleted the jackson-provider branch December 23, 2019 17:07
@nimo23
Copy link
Contributor Author

nimo23 commented Dec 24, 2019

This solution does not work. Solution #88 works.

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.

None yet

2 participants