- Issue created by @dinaish20
- π¬π§United Kingdom joachim
Could you provide more details on the field type and the module it's from please? Links would be useful!
- πΊπΈUnited States dinaish20 San Francisco
Hi @joachim
Thanks for reaching out.
This module is from Acquia Cohesion (Site Studio). Here are the more details.
About site studio
https://www.drupal.org/acquia-site-studio βAbout field
https://sitestudiodocs.acquia.com/6.0/user-guide/adding-template-selecti...Happy to provide more details.
- π¬π§United Kingdom joachim
Do you have a link to the field type plugin class?
- πΊπΈUnited States dinaish20 San Francisco
Not sure if this is what you are looking for
https://git.drupalcode.org/project/site_studio_master_template_selector/...
- πΊπΈUnited States dinaish20 San Francisco
Update:
Adding $properties['value'] to the above mentioned field helped resolving the issue.
So jsonapi nromalize function is looking for this property in all fields of the node and it wasn't there.So for now we are good.
But documentation of this module can include this statement that all fields need that property as jsonapi module will fail otherwise. - π¬π§United Kingdom joachim
I think that's because that field type plugin doesn't implement mainPropertyName().
Without that, JSONAPI defaults to 'value'.