Skip to content

The ID implementation (and documentation example) does not follow the JSON:API spec #46

@CaerphillyMediaLtd

Description

@CaerphillyMediaLtd

From the spec:

Every resource object MUST contain an id member and a type member. The values of the id and type members MUST be strings.

But the library allows any type to be used for the ID, and what's worse is that the ORM documentation on the README uses an integer for the value of id. I don't believe that jsonapi-requests should allow this at all, and should instead raise an exception when an invalid type is used.

If you are no longer interested in maintaining the project I will fork and fix this myself (as there's several other things I'd like to change). But if you are then you'd be better to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    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