-
Notifications
You must be signed in to change notification settings - Fork 3
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
Clarification on deserialization #67
Comments
Hi Chris, I think it makes sense to be able to circumvent missing I guess what we can do is register the pending references and after all is deserialized and |
Dear Team, Many thanks for finding time to look into this issue, appriciate it. The suggestion you have put forward sounds good to me. Becuase, when i had a quick look at the jsonld doc, it implicitly saying that Regards, |
I created a follow-up ticket for the discussed enhancement - #69. |
Implemented in 0.15.0. |
Hi,
Can i check whether a nested object in which the child nodes does only have "@id" without "@type" will perform the deserialization using the jb4jsonld ?
This use case come when, i need to refer an already existing person object in the payload which only have a id.
I saw the config property
assumeTargetType = true
to deal with this (As per my understanding). But it doesn't work as I expected. I am getting the below error There are unresolved references to objects. (Though i noticed, i am getting the targetted Type in debug, but since its not PersistenceProperties#IDENTIFIER_TYPE, not added).When i do a quick analysis, i found below.
In
javaCollectionDeserializer#resolveValue(Map)
, there is a conditiona as belowSo from the above code, the execution goes all the way to
DefaultInstanceBuilder#addNodeForREference(String)
. From here it check forcanDirectlyAddNodeReference (targetType)
, where it check whther the targetted type is any of PersistenceProperties#IDENTIFIER_TYPE, since its adding to pendingReferenceRegistry.Example object given below.
Any input would be appreciated.
Thanks in advacne,
Chris.
The text was updated successfully, but these errors were encountered: