Bundling with internal refs for AWS API Gateway causing errors
When I bundle my swagger files using swagger-cli, it works great but AWS API Gateway doesn't like the internal references, apparently.
This is the error I am getting:
No integration defined for method
It works fine for the first reference since presumably it is dereferenced. Do you have any thoughts on this? Could the swagger-cli allow all references to be dereferenced?
If you want to dereference all references (not just external ones), then use the --dereference option in Swagger CLI (or the dereference() method in Swagger Parser)
Okay, cool. I'll try that. Thanks for the input. Is there an option to dereference just external references?
That's the point of the bundle command. It only dereferences external references. But it sounds like that's not sufficient for AWS API Gateway, so you'll have to fully dereference everything instead