Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cay89 opened this issue Feb 6, 2025 · 4 comments
Open
Labels

Comments

@cay89
Copy link
Contributor

cay89 commented Feb 6, 2025

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.

@soyuka
Copy link
Member

soyuka commented Feb 7, 2025

Can you check if 4.1.0-beta.2 fixes the issue?

@cay89
Copy link
Contributor Author

cay89 commented Feb 11, 2025

Can you check if 4.1.0-beta.2 fixes the issue?

I've checked. There is a same problem.

@soyuka
Copy link
Member

soyuka commented Feb 11, 2025

#6960 is a good candidate for fixing this

Copy link

stale bot commented Apr 12, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants