Skip to content

Ensure specification validation checks relations are of expected type (to-one or to-many) #15

Closed
@lindyhopchris

Description

@lindyhopchris

RE: this issue:
cloudcreativity/laravel-json-api#335

We need to ensure that the specification validator rejects a document that has the wrong type of relation - e.g. submitting a to-many for a to-one, and vice versa.

The spec validator now has access to this information via the schema classes.

I suspect I've already implemented this, but just need to double-check that it is implemented and tested before closing this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions