Closed BastianBickelhaupt closed 2 years ago
Hello,
We are using the Hyperlink method:
$result = new Hyperlink([new Text($item->nodeValue)], $linkHref, '');
The last parameter is the "title". No matter what i do i always get the following API validation error:
{ "sys": { "type": "Error", "id": "InvalidEntry" }, "message": "Validation error", "details": { "errors": [ { "name": "unexpected", "details": "The property \"title\" is not expected", "path": [ "fields", "text", "en-US", "content", 0, "content", 2, "data", "title" ] } ] }, "requestId": "7367745e-ab40-4f73-9caf-0ea7f9ef640f" }
I also dont find the "title" feature on the contentful UI, when i add a link in to a RichText field and fetch the data from API. It always just have:
{ "nodeType": "hyperlink", "data": { "uri": "https://www.test.de" }, "content": [ { "nodeType": "text", "value": "Link", "marks": [], "data": {} } ] }
in the reponse. But when i use the Hyperlink class to create new entry, it automatically adds "uri" AND "title", which seem to fail.
Anybody has a solution to fix this?
Hello,
We are using the Hyperlink method:
$result = new Hyperlink([new Text($item->nodeValue)], $linkHref, '');
The last parameter is the "title". No matter what i do i always get the following API validation error:
{ "sys": { "type": "Error", "id": "InvalidEntry" }, "message": "Validation error", "details": { "errors": [ { "name": "unexpected", "details": "The property \"title\" is not expected", "path": [ "fields", "text", "en-US", "content", 0, "content", 2, "data", "title" ] } ] }, "requestId": "7367745e-ab40-4f73-9caf-0ea7f9ef640f" }
I also dont find the "title" feature on the contentful UI, when i add a link in to a RichText field and fetch the data from API. It always just have:
{ "nodeType": "hyperlink", "data": { "uri": "https://www.test.de" }, "content": [ { "nodeType": "text", "value": "Link", "marks": [], "data": {} } ] }
in the reponse. But when i use the Hyperlink class to create new entry, it automatically adds "uri" AND "title", which seem to fail.
Anybody has a solution to fix this?