-
Notifications
You must be signed in to change notification settings - Fork 16
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
Lib can not be used with Jackson 2.10.0 or later #27
Comments
Any ideas when / if work can start on this? As Spring Boot 2.2.x uses Jackson 2.10.x this becomes a problem for everyone using Spring Boot 2.2. |
Workaround
|
Hi @grimsa & @paul-pop! We recently updated our Jackson dependency and ran straight into this issue. The workaround works for us. Regarding a possible backwards-compatible fix: Shouldn't it be possible to also override Thanks & have a good weekend! |
…hot#27 Slightly change the json formatter. Means that one might have to search&replace all existing snap files (if "strict" matching is used)
* Releasing 1.3.1. Jackson dependencies update * Aligning with Jackson Core 2.10.0 or later as suggested here (json-snapshot/json-snapshot.github.io#27) Release 1.3.2
Hi, @grimsa similar to the workaround you proposed, can we also introduce the workaround for having different modes of matching? i.e Introduce different matching modes |
Jackson is a transitive dependency of 'json-snapshot'. In order to use Jackson as Java Module, we update it to the latest version instead of patching it. Unfortunately, 'json-snapshot' has not been updated in years and the way we used it is not compatible with the latest Jackson version. By adjusting the test setup as described here, we make it work: json-snapshot/json-snapshot.github.io#27 (comment) Signed-off-by: Jendrik Johannes <[email protected]>
Jackson is a transitive dependency of 'json-snapshot'. In order to use Jackson as Java Module, we update it to the latest version instead of patching it. Unfortunately, 'json-snapshot' has not been updated in years and the way we used it is not compatible with the latest Jackson version. By adjusting the test setup as described here, we make it work: json-snapshot/json-snapshot.github.io#27 (comment) Signed-off-by: Jendrik Johannes <[email protected]>
Jackson is a transitive dependency of 'json-snapshot'. In order to use Jackson as Java Module, we update it to the latest version instead of patching it. Unfortunately, 'json-snapshot' has not been updated in years and the way we used it is not compatible with the latest Jackson version. By adjusting the test setup as described here, we make it work: json-snapshot/json-snapshot.github.io#27 (comment) Signed-off-by: Jendrik Johannes <[email protected]>
Jackson is a transitive dependency of 'json-snapshot'. In order to use Jackson as Java Module, we update it to the latest version instead of patching it. Unfortunately, 'json-snapshot' has not been updated in years and the way we used it is not compatible with the latest Jackson version. By adjusting the test setup as described here, we make it work: json-snapshot/json-snapshot.github.io#27 (comment) Signed-off-by: Jendrik Johannes <[email protected]>
Jackson is a transitive dependency of 'json-snapshot'. In order to use Jackson as Java Module, we update it to the latest version instead of patching it. Unfortunately, 'json-snapshot' has not been updated in years and the way we used it is not compatible with the latest Jackson version. By adjusting the test setup as described here, we make it work: json-snapshot/json-snapshot.github.io#27 (comment) Signed-off-by: Jendrik Johannes <[email protected]>
Jackson 2.10 was released 2019-09-26.
It contains a fix for FasterXML/jackson-core#502, which makes snapshot building fail with the following exception:
The cause of this is
io.github.jsonSnapshot.SnapshotMatcher#buildDefaultPrettyPrinter
whereDefaultPrettyPrinter
is extended, but now requiredcreateInstance
method is not overridden.This makes serializing JSON fail with the following stack trace:
The text was updated successfully, but these errors were encountered: