class ActiveModelSerializers::Adapter::JsonApi
def attributes_for(serializer, fields)
foo: 'bar'
{
structure:
Attributes may contain any valid JSON value
object in which it's defined.
Members of the attributes object ("attributes") represent information about the resource
description:
^(?!relationships$|links$)\\w[-\\w_]*$
patternProperties:
JSON Object
definition:
attributes
{http://jsonapi.org/format/#document-resource-object-attributes Document Resource Object Attributes}
def attributes_for(serializer, fields) serializer.attributes(fields).except(:id) end