Skip to content

Use jsonapi gem for Deserialization #1927

Open
@richmolj

Description

@richmolj

Expected behavior vs actual behavior

ActiveModelSerializers::Adapter::JsonApi::Deserialization has its own logic for deserialization. As we already depend on [https://github.com/beauby/jsonapi], let's use that gem for this purpose instead.

Steps to reproduce

N/A

Environment

N/A

Backtrace

N/A

Additonal helpful information

Relevant method for validating documents: https://github.com/beauby/jsonapi/blob/master/lib/jsonapi/document.rb#L37

This came up in #1925 (comment)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions