Skip to content

Registered ValueReader not used to decode query parameters unless explicitly stated #66

@drejc

Description

@drejc

REST like this work

@GET
    @Path("list")
    public List<ExchangeRateDto> all(@QueryParam("start")
                                      Instant start)

but not like this (or globally registered):

@GET
    @Path("list")
@RequestReader(InstantReader.class)
    public List<ExchangeRateDto> all(@QueryParam("start")
                                     @RequestReader(InstantReader.class) Instant start,

Plus registered reader doesn't necessary need a @consumes annotation

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions