Sitelet https://github.com/jsonapi-serializer/jsonapi-serializer/issues/14
Skip to content

relationships serializer inference #14

Description

@ThomasSevestre

Serializer inference on relationships can be improved.
For instance belongs_to :owner, record_type: :user uses OwnerSerializer.
In my opinion, it would make more sens to use UserSerializer.

I have a patch here: ThomasSevestre/fast_jsonapi@46b5fde

It is a breaking change, I'll make a PR if you are interested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions