Not sure if this is a bug or expected behavior- feel free to close if it's the latter.
I've got a model that has a rich text field with an embedded entry. When I call #raw on an instance of that model, the output contains the entry ruby object:
$ MyModel.raw
{
"sys"=>{...},
"fields"=> {
"richTextField"=>
{
"data"=>{},
"content"=>
[{"data"=>{}, "content"=>[{"data"=>{}, "marks"=>[], "value"=>"", "nodeType"=>"text"}], "nodeType"=>"paragraph"},
...
# Right here
{"data"=>{"target"=><RelatedFile[relatedFiles] id=‘1JZpjo5NYPjYlvIZiIM8w5’>}, "content"=>[], "nodeType"=>"embedded-entry-block"},
],
"nodeType"=>"document"
}
}
}
Should this just be the JSON of the API response instead?
Not sure if this is a bug or expected behavior- feel free to close if it's the latter.
I've got a model that has a rich text field with an embedded entry. When I call
#rawon an instance of that model, the output contains the entry ruby object:Should this just be the JSON of the API response instead?