-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Response Validation Issue - "Cannot read property 'then' of undefined in modded.mung" #61
Comments
@SpencerLawrenceBrown thanks for the issue. |
2.3.0 |
it seems to be related to how
is compiled to js. When its compiled it becomes:
|
^^ in modded.express.mung |
I just downgraded to 2.1.5 and it works fine. Looks like a change between 2.1.5 and 2.3.0 |
cdimascio
added a commit
that referenced
this issue
Oct 7, 2019
Response Validation Issue - "Cannot read property 'then' of undefined in modded.mung" #61
Thanks @SpencerLawrenceBrown. I spotted the issue. It should be resolved in v2.3.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It looks like response validation was just added a few days ago, so this could be a known issue or not. So far I really appreciate how straight-forward and friendly this library is. Thank you!
Now to the issue:
I have a simple example app using OpenApiValidator to validate requests and responses.
I am sending the request
When I have the
validateResponses
flag set to false, my response is returned correctly (although not validated of course). However when I setvalidateResponses
to true I get:Line 24 in my app.ts is pretty straightforward:
So I am trying to figure out if I mis-configured the project or if its existing issue.
I would really appreciate any feedback on how I can get this to work!
app.ts
yml spec
I really appreciate that you've made this library available and will keep digging through the source to see if I can fix it myself, but if you have any idea what might be wrong in the meantime, please let me know.
Thank you!
The text was updated successfully, but these errors were encountered: