-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$.header is undefined #1160
Comments
It might need to be plural: If that doesn't work can you attempt to access it through
|
With
Indeed,
|
Yeah, I think this is a bug. |
Yes, I think so. @pmcelhaney if you think you will fix it, please let me know. Thank you for this project, I'm using it to develop the mockup for an API and it is very useful and straightforward. |
Thanks for bringing this to my attention. It should be fixed in 1.1.6 (as soon as #1161 is merged). |
type fix: header should be headers (#1160)
Fixed in 1.1.16 |
@pmcelhaney in v1.1.16 the problem is fixed, now headers are accessible from |
The value of
$.header
is undefined even if the header is sent with the request.Test
counterfact https://petstore3.swagger.io/api/v3/openapi.json api
The DELETE
/pet/{petId}
sends theapi_key
header.If I log the value of
$.header
to the console it is undefined.api/routes/pet/{petId}.ts
If I log
$
theapi_key
header is present.:v1.1.5
Could you help me?
The text was updated successfully, but these errors were encountered: