Can't use dash in query variable name.
yexela opened this issue · comments
Alexey Chernetsky commented
UriTemplate.buildFromTemplate(API_SERVER)
.literal("/bs-core/clients/search/count-from")
.path(new VarSpec("from", Modifier.NONE))
.literal("/count-to")
.path(new VarSpec("amount", Modifier.NONE))
.query("fields-params")
.build();
Ryan J. McDonough commented
Unfortunately, the -
character is reserved in RFC6570. Please see issue #44 for details on this. Marking as Won't Fix
but I am considering a relaxed mode which could allow for this.