Skip to content

Swagger Jersey2 not respecting @BeanParam #532

Closed

Description

@shuz

@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

Activity

  1. webron commented on Apr 16, 2014

    @webron
    Contributor

    This is a duplicate of #446. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions