Skip to content

[Laravel] JSON:API response schema is wrong on the collection endpoints #6949

Closed
@cay89

Description

@cay89

API Platform version(s) affected: 4.0.16

Description

The "data" key was duplicated in the example and the schema definition. Here is the specification as it should look like.

Image

Image

The endpoint otherwise responds properly:

Image

This is a problem because openapi-generator-cli generates the classes incorrectly and the collection data is not returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions