Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
RestJsonZeroAndFalseQueryValues
protocol test (#2167)
Intially added in #2070, `RestJsonZeroAndFalseQueryValues` didn't include the correct params that would be deserialized by a server. Specifically it omitted the `@httpQueryParams` member `queryParamsMapOfStringList`. This member was added back in #2132, but the map keys corresponded to member names in the input struct, rather than the literal query parameter keys. This meant that _clients_ running this protocol test would actually have a query string of ``` ?Integer=0&Boolean=false&queryInteger=0&queryBoolean=false ``` instead of the intended ``` ?Integer=0&Boolean=false ``` (`forbidQueryParams` wasn't set in the protocol test, so clients wouldn't fail here). _servers_ would fail this test because they'd be expecting to get ``` { queryInteger: 0, queryBoolean: false, queryParamsMapOfStringList: { queryInteger: ["0"], queryBoolean: ["false"] } } ``` from a query string of ``` ?Integer=0&Boolean=false ```
- Loading branch information