Skip to content

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
mpleine pushed a commit to mpleine/springdoc-openapi that referenced this pull request May 17, 2025
Check both SerDe `BeanPropertyDefinition` for `@JsonUnwrapped`/`@Schema`
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