Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have created a Swagger API specification in Talend API designer based on the Nexus webhooks. The exported Swagger 2.0 specification is attached. It is a json file despite the txt extension name. When I try to import into AWS GW I get the errors below.
I am thinking it is safe to ignore these errors, but would appreciate any guidance or clarification.
Your API was not imported due to errors in the Swagger file.
Hi Ed,
As you probably know, AWS has a list of "unsupported" OAS features in AWS API Gateway here :
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html
What's causing some issues in your definition is the "example" field, which is indeed listed as unsupported by AWS. It turns out that their OAS 2 support is rather limited.
While the "Known issues" list seems to also apply to OAS 3, it is not the case for a lot of the issues: either they do not raise a warning/error, either a warning is emitted but the import can be forced (and the unsupported features will be dropped from the imported definition).
Their OAS 3 support is getting better and better over time, I noticed that some restrictions which were in place in late 2018 are now lifted.
Thanks for providing your API Definition! I managed to import it into AWS API Gateway correctly by first importing it into Talend API Designer, then exporting it in OAS 3 (which is in Tech Preview, but the exports are fully-compliant to the specification).
I hope this helps!
Hi Ed,
As you probably know, AWS has a list of "unsupported" OAS features in AWS API Gateway here :
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html
What's causing some issues in your definition is the "example" field, which is indeed listed as unsupported by AWS. It turns out that their OAS 2 support is rather limited.
While the "Known issues" list seems to also apply to OAS 3, it is not the case for a lot of the issues: either they do not raise a warning/error, either a warning is emitted but the import can be forced (and the unsupported features will be dropped from the imported definition).
Their OAS 3 support is getting better and better over time, I noticed that some restrictions which were in place in late 2018 are now lifted.
Thanks for providing your API Definition! I managed to import it into AWS API Gateway correctly by first importing it into Talend API Designer, then exporting it in OAS 3 (which is in Tech Preview, but the exports are fully-compliant to the specification).
I hope this helps!
Exporting from Talend API designer to OAS 3.0 and then importing to AWS API GW worked.