Request headers of type integer #2521
Replies: 1 comment
-
It seems that headers are always of type |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using
connexion==3.0.6
, we have api specifications that declares header parameters of typeinteger
. However, I have been unable to create a successful test, containing headers of typeinteger
. There is an exception raised fromhttpx
trying to make encoding on its value. In the source code, I can see thatstarlette
implements the header type fromhttpx
https://github.com/encode/httpx/blob/3faa4a8f2e0d406167b913bbfd3afab087662d03/httpx/_types.py#L57.Is there any way to use the
starlette.testclient.TestClient
withinteger
header values?Example:
Beta Was this translation helpful? Give feedback.
All reactions