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
My aproach to map object nodes to source lines worked ok with version 2.12 but feels hacky, maybe you have some pointer about how to implement this in a better way..
The text was updated successfully, but these errors were encountered:
Ok, the problem here is the sub-classing of UntypedObjectDeserializer: this is unfortunately not supported usage.
In case of change, its internal implementation was changed to resolve a security issue (see #2816) and as a result deserialize() is not called recursively, leading to output change you see.
So while the change was obviously not meant to break existing code, it has been reported as problematic.
But it is not really possible to keep existing behavior wrt calls to deserialize() as that is the core part of the problem (wrt too deep recursion).
On deserializers: UntypedObjectDeserializer.Vanilla is meant as internal-only implementation; sub-classing of UntypedObjectDeserializer itself should be less problematic, although in general sub-classing of serializers/deserializers is not considered to be fully support public API wrt compatibility: we try our best not to break things but sub-classing of implementation types is by its nature more fragile than other types of reuse.
I have also changed Javadocs to try to reflect the specific expectations for UntypedObjectDeserializer, for what that is worth.
Ok, thanks
I remember extendeding UntypedObjectDeserializer.Vanilla because was the implementation I found while debuggin the desearialization for Map.class
Now subclassing UntypedObjectDeserializer it works again.
Thanks a lot!!
Describe the bug
jsonParser.getParsingContext()
has stopped resolving path-ref and current location when upgrading from version 2.12.6 -> 2.13.3I'm trying create a map of json-paths to file line locations, very much like https://github.com/stoplightio/yaml
using a custom deserializer and the JsonParser Context:
https://github.com/ZenWave360/json-schema-ref-parser-jvm/blob/main/src/main/java/io/zenwave360/jsonrefparser/parser/JsonDeserializerWithLocations.java#L60
Version information
when upgrading from version 2.12.6 -> 2.13.3
To Reproduce
This is a minimal self-contained code to reproduce. Please note
System.out
code in line 8:Expected behavior
There is a huge difference in the output I get from System.out in line 8 between these two versions:
When run with version 2.12.6 this is the output I get from System.out in line 8 👇
When run with version 2.13.3 this is the output I get from System.out in line 8 👇
Additional context
My aproach to map object nodes to source lines worked ok with version 2.12 but feels hacky, maybe you have some pointer about how to implement this in a better way..
The text was updated successfully, but these errors were encountered: