Skip to content

Handle JsonView on getter-only properties#2599

Open
xfocus3 wants to merge 1 commit into
smallrye:mainfrom
xfocus3:fix-jsonview-getter-only-2412
Open

Handle JsonView on getter-only properties#2599
xfocus3 wants to merge 1 commit into
smallrye:mainfrom
xfocus3:fix-jsonview-getter-only-2412

Conversation

@xfocus3

@xfocus3 xfocus3 commented Jun 18, 2026

Copy link
Copy Markdown

Fixes #2412.

Summary

  • Track when a property accessor/mutator is ignored by visibility rules such as an inactive @JsonView.
  • Avoid keeping a getter-only property solely because of its backing field when that getter is excluded from the active view.
  • Add a regression test for a getter-only property annotated with a different view.

Testing

  • mvn -pl core -am -Dtest=io.smallrye.openapi.runtime.scanner.dataobject.TypeResolverTests -Dsurefire.failIfNoSpecifiedTests=false test
  • mvn -pl core -am test

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.

@JsonView + getter only does not mark field ignored

1 participant