Skip to content

Conversation

gm2211
Copy link
Contributor

@gm2211 gm2211 commented Jun 29, 2016

At the moment if you use frameworks like FreeBuilder (https://github.com/google/FreeBuilder) to create POJOs (with builders), you end up with interfaces or abstract classes that only have getters (with builders and concrete classes being automatically generated at compilation time).

Previously that meant that those objects would be ignored by Swagger if used as @BeanParam on jersey resources; this change allows type params and annotations (like @QueryParam) to be picked up from getters.

At the moment if you use frameworks like FreeBuilder (https://github.com/google/FreeBuilder) to create POJOs (with builders), you end up with interfaces or abstract classes that only have getters (with builders and concrete classes being automatically generated at compilation time).

Previously that would mean that those objects would be ignored by Swagger if used as @BeanParam on jersey resources; this change allows type params and annotations (like @QueryParam) to be picked up from getters.
@webron
Copy link
Contributor

webron commented Jul 5, 2016

@frantuma - can you review this please?

@frantuma
Copy link
Contributor

@gm2211 this seems ok, would you mind adding a test demonstrating the use case?

@fehguy fehguy merged commit 5aae81b into swagger-api:master Dec 19, 2016
@fehguy fehguy modified the milestone: v1.5.11 Dec 19, 2016
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.

4 participants