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

Java-JSON Decoder can decode (return) String too #1989

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

vitalijr2
Copy link
Collaborator

@vitalijr2 vitalijr2 commented Mar 22, 2023

This is not a bug, but a small improvement.

On some special cases a remote API can return not only JSON but a plain strings, e.g. ipinfo.io can returns a large JSON object as well as a value of field of that object. We cannot set different decoders for different methods. I propose to allow the decoder returns a raw string according to the type that a method returns.

@vitalijr2 vitalijr2 requested review from velo and kdavisk6 March 22, 2023 14:19
@velo velo merged commit 8ad08f8 into OpenFeign:master Mar 23, 2023
@vitalijr2 vitalijr2 deleted the json-decoder-and-string branch March 23, 2023 10:41
velo pushed a commit that referenced this pull request Oct 7, 2024
velo pushed a commit that referenced this pull request Oct 8, 2024
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.

2 participants