Repository navigation
Tweak query param types - #175
Conversation
|
Later follow ups:
Let's treat those as separate issues. |
|
Thanks for the look-over, @pquentin! |
|
Sorry for not getting my review in on this! This implementation can't emit a query key without a value (ie: |
Yup. I鈥檓 very okay with that - I don鈥檛 think we should distinguish between the two cases, although I鈥檇 be happy with confirming which of the two styles browser form inputs end up with. If users need that use case for something esoteric, then they can use explicit string query strings. |
| return value.encode(encoding or "ascii") | ||
|
|
||
|
|
||
| def str_query_param(value: typing.Union[str, int, float, bool, type(None)]) -> str: |
There was a problem hiding this comment.
are there any obstacles to using PrimitiveData? for consistency
There was a problem hiding this comment.
Yes and no. We'd need some tweaking to avoid a cyclical dependency.
|
Following up on my comment last week, turns out the API I'm implementing a client for dies if the optional param is present whether or not the key has an |
Allow primitive data types for query params.
Closes #154