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

Check both SerDe BeanPropertyDefinition for @JsonUnwrapped/@Schema #2909

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

wingsofovnia
Copy link
Contributor

In #2894 we switched from just looking at the fields for @JsonUnwrapped/@Schema to relying on Jackson introspection. That however wrongly relied on deserialization view only, which lead to #2879 (comment).

In this PR both Serialisation and Deserialization BeanPropertyDefinitions are introspected.

A test covers both readonly and writeonly fields annotated with @JsonUnwrapped.

Fixes #2879 (comment)

@bnasslahsen bnasslahsen merged commit 1536f24 into springdoc:main Feb 25, 2025
1 check passed
@wingsofovnia wingsofovnia deleted the fix/2879-2 branch February 26, 2025 11:48
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.

@JsonUnwrapped is still broken since 2.5
2 participants