We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See FasterXML/jackson-databind#4409 for context.
Jackson 2.16.0 and 2.16.1 break the uploadcare client because of the presence of RGBA and RGBa in FileColor.Mode
public static class Bug { public File.ColorMode colorMode; } @Test public void enumFails() throws Exception { String json = "{ \"color_mode\": \"RGBa\"}"; // duplicate the way the mapper is configured in uploadcare ObjectMapper mapper = new ObjectMapper(); mapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES); Bug bug = mapper.readValue(json, Bug.class); }
The enum File.ColorMode needs to be annotated explicitly to behave properly.
File.ColorMode
The text was updated successfully, but these errors were encountered:
Hi @sbailliez! We'll be able to look into this in a week.
Sorry, something went wrong.
@rsedykh FYI, thanks to @sbailliez's report we were able to add a patch to 2.16 version, so upgrade to 2.16 would do the trick 👍🏼
#66 Upgrade com.fasterxml.jackson.core:jackson-databind from `2.12.…
com.fasterxml.jackson.core:jackson-databind
882a9fe
…6.1` to `2.16.2`
Thank you, guys! https://github.com/uploadcare/uploadcare-java/releases/tag/v3.5.3
Successfully merging a pull request may close this issue.
See FasterXML/jackson-databind#4409 for context.
Jackson 2.16.0 and 2.16.1 break the uploadcare client because of the presence of RGBA and RGBa in FileColor.Mode
Code / screenshots
The enum
File.ColorMode
needs to be annotated explicitly to behave properly.Environment
The text was updated successfully, but these errors were encountered: