Skip to content

:response key breaks JSON API spec compatibility #125

@jasonbosco

Description

@jasonbosco

The :response key that is implicitly included in the JSON that is generated by expose here, makes the JSON generated by rocket_pants incompatible with the JSON API specs.

According to the specs:

Primary data MUST appear under a top-level key named "data"

but in the JSON generated by rocket_pants, the implicit top-level key is response and is not configurable.

It would be great if there was an option to remove this top-level root key.

What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions