-
Notifications
You must be signed in to change notification settings - Fork 5
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
problem with latest version of swagger-tools/json-refs #18
Comments
That error is somewhat cryptic in it says the argument should be an I'm assuming this runs fine with Node.js? |
Yeah - it runs fine using node.js (version 0.10.32) but does fail when running locally using trireme. In case anybody else does come across this, a workaround is to force usage of swagger-tools version 0.9.11 by putting a reference to that in the main package.json of the node app you want to run on Apigee |
I have managed to track this down to an entry in our swagger.yaml file. If we have an empty value in there, then it fails in triereme. If we just remove the empty value, then it works So we have a line with
then it fails. Removing these allows it to work running under node and trireme |
Have also created issue on trireme |
Thanks for chasing this down. I do think this is a Trireme bug so unless you object, we can close it here because there's nothing to be done here. |
Thats fine - will close it |
Not sure if the problem is in this code, or downstream in swagger-tools or json refs, but...
swagger-tools has been updated to version 0.9.14 which uses the latest version of json-refs - 2.1.5
This module specifies to use ^0.9.0 of swagger-tools so if you do a clean install it gets version 0.9.14 of swagger-tools and version 2.1.5 of json-refs
If you deploy a proxy to apigee edge with these versions, you get this errors when you try to call it
TypeError: Expected argument of type object, but instead had type object at clone (/organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/index.js:69) at /organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/index.js:70 at clone (/organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/index.js:69) at /organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/index.js:1165 at notifyIsolated (/organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/node_modules/native-promise-only/lib/npo.src.js:120) at notify (/organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/node_modules/native-promise-only/lib/npo.src.js:97) at drain (/organization/environment/api/node_modules/a127-magic/node_modules/swagger-tools/node_modules/json-refs/node_modules/native-promise-only/lib/npo.src.js:67) at processImmediate (timers.js:345)
The text was updated successfully, but these errors were encountered: