Skip to content

include()/exclude() should allow multiple arguments #2

Closed
@monitorjbl

Description

@monitorjbl

Having to add a new method call for each thing to be included/excluded is more verbose than it needs to be. I'd prefer to be able to do this instead:

return JsonView.with(service.get(principal, id))
        .onClass(TestObjectA.class, match()
            .exclude("*")
            .include("id", "name"))
        .returnValue();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions