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

Respect deserialization of enums using toString() #1104

Merged
merged 1 commit into from Jun 18, 2015

Conversation

Projects
None yet
5 participants
@arteam
Member

arteam commented Jun 6, 2015

If Jackson if configured with READ_ENUMS_USING_TO_STRING feature, PermissiveEnumDeserializer should respect it and let Jackson to correctly deserialize an enum using its toString method.

Fix #1098

@coveralls

This comment has been minimized.

Show comment
Hide comment
@coveralls

coveralls Jun 6, 2015

Coverage Status

Coverage increased (+0.02%) to 72.2% when pulling 6f78cbd on arteam:respect_for_deserialize_to_string into b119bb3 on dropwizard:master.

coveralls commented Jun 6, 2015

Coverage Status

Coverage increased (+0.02%) to 72.2% when pulling 6f78cbd on arteam:respect_for_deserialize_to_string into b119bb3 on dropwizard:master.

@joschi

View changes

Show outdated Hide outdated ...ard-jackson/src/test/java/io/dropwizard/jackson/FuzzyEnumModuleTest.java

@jplock jplock added this to the 0.9.0 milestone Jun 9, 2015

Respect deserialization of enums using toString()
If Jackson if configured with *READ_ENUMS_USING_TO_STRING*
feature, `PermissiveEnumDeserializer` should respect it and
let Jackson to correctly deserialize an enum using its
`toString` method.

Fix #1098

carlo-rtr added a commit that referenced this pull request Jun 18, 2015

Merge pull request #1104 from arteam/respect_for_deserialize_to_string
Respect deserialization of enums using toString()

@carlo-rtr carlo-rtr merged commit d77cc80 into dropwizard:master Jun 18, 2015

@arteam arteam deleted the arteam:respect_for_deserialize_to_string branch Jan 24, 2016

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