You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Yeah, there is already a TODO in the sources to handle this and there is a vague bug already reported (Issue #30) that suggests the need to enhance this. I'm going to close this and stick with that bug for making this happen. If you believe this is an error, please feel free to re-open.
Hi,
It seems that the returned value in stub mode doesn't take into account the allowed returned types specified in the swagger document.
My swagger document specifies only the 'application/json' as the produce type and an error was thrown when running stub mode with the {validateResponse: true} option sent to the swaggerValidator middleware.
You can see here https://github.com/apigee-127/swagger-tools/blob/master/middleware/helpers.js#L247 that the returned value is always text.
Thanks,
Boris
The text was updated successfully, but these errors were encountered: