-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed as not planned
Closed as not planned
Copy link
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
Hello !
I was expecting my Spring web controller to be able to convert a string parameter to an enum by using the jackson @JsonValue or @JsonCreator behavior.
Then i saw that org.springframework.core.convert.support.StringToEnumConverterFactory.StringToEnum just use Enum::valueOf.
What do you think ? Shouldn't default behavior be aware of those jackson annotations for a better conversion ?
It could either be another converter used by default (like StringToJsonEnumConverterFactory) or an update of the actual.
You can check at this project that reproduce the issue, with the associated failing tests.
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply