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
Javers Diff - Converting InitialValueChange with JsonConverter throws error #1092
Comments
Hi, thanks for reporting, consider contributing a PR with the fix |
I added the init but it was not working after that as well. |
The problem is that there is no de-serialization code in javers for that types: |
fixed in 6.1.1 |
Hello Javers-Team,
I found a bug which affects the JsonConverter.
An error is thrown in the JsonConverter when the JSON includes an InitialValueChange.
Example:
I created a Diff of two objects. One has a new child with initial values. This diff is converted to JSON with:
The output-JSON of this is:
If I now take this JSON and put it in the method
to convert it to a Diff again, an error is thrown:
MALFORMED_CHANGE_TYPE_FIELD: no such Change type - 'InitialChange'
This error seems to be thrown in the ChangeTypeAdapter.class as the InitialValueChange.class is not part of the constructor of this class.
Thank you for your help!
The text was updated successfully, but these errors were encountered: