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

SchemaMappingInspector should look in controller package if return type for a union is Object #960

Closed
rstoyanchev opened this issue May 2, 2024 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

To resolve union types, the inspector tries to find matching Java classes in the same package as the return type of the controller method for the union. However, if there is no sealed type or marker interface to return, the return type is likely Object. As a fallback, we can also try in the package of the controller.

@rstoyanchev rstoyanchev added the type: enhancement A general enhancement label May 2, 2024
@rstoyanchev rstoyanchev added this to the 1.3.0 milestone May 2, 2024
@rstoyanchev rstoyanchev self-assigned this May 2, 2024
rstoyanchev added a commit that referenced this issue May 2, 2024
If the union controller method returns Object, as a fallback
try the package of the controller.

See gh-960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant