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 was archived by the owner on Aug 8, 2018. It is now read-only.
I must admit that I'm new to Swagger and AWS Gateway, but the following seems to be counter-intuitive. Please correct me if I'm doing something wrong or if I'm misunderstanding some core principles here.
I'm creating an API that returns a list of objects. For that reason I'm creating a definition like this:
Import works fine. However, the model created in AWS API Gateway is named "Result" now - it's based on the description of the response. Having multiple responses with the description "Result" will result in conflicts with only a single model being defined in the end. That can't be right, can it?
My expectation would be that I can define the name of the model, e.g. by specifying the "name" parameter.
I've identified the root cause of my problem in the ApiGatewaySdkSwaggerApiImporter.java as follows:
For API responses as well as request bodys, the description property is used to generate the model name. However, for BodyParameter the property name seems more appropriate in my opinion. For Response I haven't found an obvious property such as name, but maybe a vendor extension would work.
Oh, and the most curious part is that the actual description field of the model in API Gateway (the one visible in the AWS console) is never set.