You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having DTO with ByteArray property, it should be deserialized from Base64 string representation during HTTP call.
Actual Behaviour
The response from the http call is 400 with message "Failed to convert argument [testDto] for value [null] due to: Instantiation of [simple type, class com.example.TestDto] value failed for JSON property content due to missing (therefore NULL) value for creator parameter content which is a non-nullable type\n at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.example.TestDto[\"content\"])"
Expected Behavior
When having DTO with
ByteArray
property, it should be deserialized from Base64 string representation during HTTP call.Actual Behaviour
The response from the http call is 400 with message
"Failed to convert argument [testDto] for value [null] due to: Instantiation of [simple type, class com.example.TestDto] value failed for JSON property content due to missing (therefore NULL) value for creator parameter content which is a non-nullable type\n at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.example.TestDto[\"content\"])"
DTO example:
HTTP call example:
Steps To Reproduce
Just run
./gradlew test
in the example application.Environment Information
Example Application
https://github.com/ondrej-hrstka/bytearray-deserialization-issue
Version
3.4.2
The text was updated successfully, but these errors were encountered: