Ruby on rails #<;FastJsonapi::MandatoryField:id是jsonapi规范中的必填字段>;

Ruby on rails #<;FastJsonapi::MandatoryField:id是jsonapi规范中的必填字段>;,ruby-on-rails,fastjsonapi,Ruby On Rails,Fastjsonapi,尝试将枚举对象传递给序列化程序时,出现以下错误: # @drop\u down\u values=organization.ownerships 其中@drop_down_values具有所有权列中的枚举值 render-json:DropDownValueSerializer.new(@drop\u-down\u-values)。序列化的\u-json我发现FastJsonAPI默认需要对象id。因此,当将对象传递给序列化程序时,它希望传递的对象中存在id “”这已作为问题记录在FastJso

尝试将枚举对象传递给序列化程序时,出现以下错误:

#

@drop\u down\u values=organization.ownerships
其中@drop_down_values具有所有权列中的枚举值


render-json:DropDownValueSerializer.new(@drop\u-down\u-values)。序列化的\u-json
我发现
FastJsonAPI默认需要对象
id
。因此,当将对象传递给
序列化程序
时,它希望传递的对象中存在
id

“”这已作为问题记录在FastJsonAPI中

以下功能正常工作:

render json:DropDownValueSerializer.new(Organization.first)。序列化的\u json