Query params without value are not saved by SimpleRequest.Builder

Issue #34 resolved
Sven Döring created an issue

According to the URI RFC a query parameter doesn't necessarily have a value. This might be a valid query string: "?request-validate&name=swagger".

But building the SimpleRequest with

builder.withQueryParams("request-validate").withQueryParams("name", "swagger").build()

only leads to the one saved query parameter: "name". "request-validate" is missing though it was on the query string.

This might lead to false rejections on:

RequestValidator#validateQueryParameters(Request, ApiOperation)

Comments (2)

  1. Log in to comment