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

ModelResolver#resolve ignores TYPE_USE annotations on property types #4848

Open
olsavmic opened this issue Feb 26, 2025 · 0 comments
Open

ModelResolver#resolve ignores TYPE_USE annotations on property types #4848

olsavmic opened this issue Feb 26, 2025 · 0 comments

Comments

@olsavmic
Copy link

We're using the JSpecify annotations (which will become the default nullability annotations in Spring Framework 7) and we encountered an issue with Swagger-core capabilities.

These nullability annotations are properly targeting TYPE_USE element type, which is currently not read at all by the io.swagger.v3.core.jackson.ModelResolver#resolve, making it impossible to set OpenAPI properties (such as eg. nullability) automatically.

  • Do you see any blocker why TYPE_USE annotations should not be considered by the ModelResolver?
  • Do you see any way around until the swagger-core is improved?
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

No branches or pull requests

1 participant