You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generation for a request parameter @RequestParam(name = "foobar", required = false) @Nullable String foobar is incorrect. The resulting implementation makes a http request with null string value for query parameter foobar, and thus the backend correctly thinks it was sent "null" String.
Instead, the query parameter should be wholly omitted from the http request.
I intend to make a pull request later.
The text was updated successfully, but these errors were encountered:
Omit request parameter for a null value
When request parameter has null value, it was previously send on the wire: <endpoint>?queryParam=null.
However, we don't want to make the backend to interpret "null" characters as null value.
Thus it is better to omit the request parameter altogether if it has null value.
Fixes#34
Generation for a request parameter
@RequestParam(name = "foobar", required = false) @Nullable String foobar
is incorrect. The resulting implementation makes a http request withnull
string value for query parameterfoobar
, and thus the backend correctly thinks it was sent"null"
String.Instead, the query parameter should be wholly omitted from the http request.
I intend to make a pull request later.
The text was updated successfully, but these errors were encountered: