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

Custom dto output return tons of @context #6810

Open
HrjSnz opened this issue Nov 20, 2024 · 2 comments
Open

Custom dto output return tons of @context #6810

HrjSnz opened this issue Nov 20, 2024 · 2 comments

Comments

@HrjSnz
Copy link

HrjSnz commented Nov 20, 2024

API Platform version(s) affected: 4.0.7 +

Description
With custom resource and use parameter "output" for custom dto return in response full "@ context" . In version 4.0.6 and below not.
If not use "output" everything works fine.

How to reproduce
Just make custom output DTO.

Possible Solution
Is this bug ? I couldn't find any mention of this in the changes.

Additional Context
custom api resource
image

in response tons of "@ context" (around 1k lines)
image

@soyuka
Copy link
Member

soyuka commented Nov 22, 2024

mark your DTO as an API Resource to avoid that, I'll check if we can do something.

@HrjSnz
Copy link
Author

HrjSnz commented Nov 22, 2024

Hi, thanks for tip, but does not work for me. Still getting around 1k lines context. Updated and tested on 4.0.9. Tried add #[ApiResource] to all related DTOs and still not work.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants