Skip to content

POC filter fields when serializing DTOs#274

Merged
TestaDiRapa merged 1 commit intomainfrom
poc/serialization-filtering
Feb 5, 2026
Merged

POC filter fields when serializing DTOs#274
TestaDiRapa merged 1 commit intomainfrom
poc/serialization-filtering

Conversation

@TestaDiRapa
Copy link
Collaborator

Not needed right now but a reminder in case we need it for the future.

It is possible to annotate a class with the @JsonFilter annotation and then filter out its fields when serializing using a configuration on the mapper.

@TestaDiRapa TestaDiRapa self-assigned this Feb 5, 2026
@TestaDiRapa TestaDiRapa merged commit 9e8d0a2 into main Feb 5, 2026
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.

1 participant