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] Fix @JsonCreator annotation issue with Java API clients using gson #3551

Merged
merged 1 commit into from
Aug 7, 2016

Conversation

wing328
Copy link
Contributor

@wing328 wing328 commented Aug 7, 2016

The issue was due to not using {{#jackson}} tab to handle the JsonCreator (we've done it for import but not fromValue) and it's causing issue for Java API clients using gson (okhttp-gson, retrofit, retrofit2)

Ran ./bin/java-petstore-all.sh to update all Java API client so as to back test API clients using jackson and to confirm API clients using gson no longer having the issue.

The issue was caused by #3531 in an attempt to fix deserializaiton issue with jackson.

@wing328 wing328 added this to the v2.2.1 milestone Aug 7, 2016
@fehguy fehguy merged commit 5f67ec0 into swagger-api:master Aug 7, 2016
@sebciok
Copy link

sebciok commented Aug 7, 2016

I pulled the latest, regenerated my definition, and I could compile the generated code. I can no longer see @JsonCreator attributes. Kudos for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants