-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add MapperFeature.ALLOW_COERCION_OF_SCALARS
for enabling/disabling coercions
#1106
Milestone
Comments
cowtowncoder
changed the title
(2.8) Add
(2.8) Add Jan 30, 2016
DeserializationFeature.ALLOW_COERCION_FOR_SCALARS
DeserializationFeature
value ALLOW_COERCION_FOR_SCALARS
cowtowncoder
changed the title
(2.8) Add
Add May 25, 2016
DeserializationFeature
value ALLOW_COERCION_FOR_SCALARS
DeserializationFeature
value ALLOW_COERCION_FOR_SCALARS
cowtowncoder
changed the title
Add
Add Mar 19, 2017
DeserializationFeature
value ALLOW_COERCION_FOR_SCALARS
DeserializationFeature
s ACCEPT_EMPTY_STRING_AS_SCALAR
, ALLOW_COERCION_FOR_SCALARS
cowtowncoder
changed the title
Add
Add Mar 31, 2017
DeserializationFeature
s ACCEPT_EMPTY_STRING_AS_SCALAR
, ALLOW_COERCION_FOR_SCALARS
DeserializationFeature.ALLOW_COERCION_FOR_SCALARS
for enabling/disabling coercions
cowtowncoder
added a commit
that referenced
this issue
Mar 31, 2017
cowtowncoder
changed the title
Add
Add Mar 31, 2017
DeserializationFeature.ALLOW_COERCION_FOR_SCALARS
for enabling/disabling coercionsMapperFeature.ALLOW_COERCION_OF_SCALARS
for enabling/disabling coercions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(see #200 for background; #1095 also)
While existing features should cover cases of allowing (or not) of coercion from
null
to primitive (FAIL_ON_NULL_FOR_PRIMITIVES
), as well as coercion from empty String to primitive via null (as per #1095), there is no way to block other coercions from JSON Strings (primarily) or, in case ofboolean
/Boolean
, from integral numbers.To allow preventing such coercions, it would make sense to add yet another
DeserializationFeature
, named something likeALLOW_COERCION_FOR_SCALARS
, defaulting totrue
to keep current behavior as the baseline.The text was updated successfully, but these errors were encountered: