Skip to content

Swagger Jersey2 not respecting @BeanParam #532

@shuz

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

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