Skip to content

Review dto docs#2275

Open
soyuka wants to merge 1 commit intoapi-platform:4.3from
soyuka:dtoreview
Open

Review dto docs#2275
soyuka wants to merge 1 commit intoapi-platform:4.3from
soyuka:dtoreview

Conversation

@soyuka
Copy link
Copy Markdown
Member

@soyuka soyuka commented Mar 29, 2026

No description provided.

bugs (see [#7745](https://github.com/api-platform/core/issues/7745)).

The main legitimate use case for `output:` is on `GetCollection` when you need a lighter
representation with fewer fields than the main Resource. Even then, consider whether serialization
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn’t that be problematic with JSON streaming, since it’s not compatible with serialization groups?

From my perspective, one of the main benefits of using DTOs is precisely to explicitly define and control the exposed properties, without relying on serialization groups.

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

Successfully merging this pull request may close these issues.

2 participants