- Issue created by @sense-design
We have a field "field_article_seo" which is a Metatag field within a node entity. The jsonapi?_format=json lists the field below relationships (see screenshot), on the resource for the node entity the field is below attributes which causes a schemata mismatch in an external application relying on this.
Schemata JSON
{
"definitions": {
"node--article": {
"properties": {
"data": {
"properties": {
"relationships": {
"properties": {
"field_article_seo": {
"title": "SEO",
"type": "object",
"properties": {
"...": "..."
}
}
}
}
}
}
}
}
}
}
JSON:API Resource response (/jsonapi/node/article)
{
"data": [
{
"type": "node--article",
"attributes": {
"field_article_seo": "{\"title\":\"Test\"}",
},
"relationships": {
// No field_article_seo here
}
}
]
}
The following versions of modules are used:
Any ideas on this how to get this fixed?
Active
1.0
Code