Dynamic Entity Reference normalization support

Created on 21 January 2019, almost 6 years ago
Updated 4 July 2023, over 1 year ago

Earlier/1.x versions of JSONAPI seemed to work well with dynamic_entity_reference but after 2.x upgrade it stopped. Because 2.x looks for a ResourceType via a statically defined target_type on an entity in its definition while the target_type is not yet defined/or unable to infer for a dynamic_entity_reference field before the content entity is actually created.

I don't think it is something we can fix in the dynamic_entity_reference module but add few lines of more code how JSONAPI could look for a ResourceType of a dynamic field.

Here is the patch. I am sure it needs some improvement but seems to be working for me. Any suggestions will be helpful

Thanks

Feature request
Status

Active

Version

11.0 🔥

Component
JSON API 

Last updated about 11 hours ago

Created by

🇵🇰Pakistan abrar_arshad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024