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

Swagger Jersey2 not respecting @BeanParam #532

Closed
shuz opened this issue Apr 16, 2014 · 1 comment
Closed

Swagger Jersey2 not respecting @BeanParam #532

shuz opened this issue Apr 16, 2014 · 1 comment

Comments

@shuz
Copy link
Contributor

shuz commented Apr 16, 2014

@BeanParam is used to group parameters into a java bean. For more information refer to this document. Here is an example:

// ...
    @ApiOperation("Search users")
    @GET
    @Path("/")
    Results<User> list(@BeanParam UserListOptions listOptions);
}
public class UserListOptions extends PagingGetOptions {

    @QueryParam("username")
    private String username;

    @QueryParam("properties")
    private String properties;

    // ...
    // getter/setters
}

I made a simple fix but it's based on my own modifications. You can refer to the commit here.
shuz@5213b4f

@webron
Copy link
Contributor

webron commented Apr 16, 2014

This is a duplicate of #446. Closing.

@webron webron closed this as completed Apr 16, 2014
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

2 participants