-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support APIGW Models in API Events #895
Comments
@keetonian Thanks for creating this feature request. I may try to take a stab at it if I have time in the next month or so. |
@keetonian I think this new feature request I created is related to this existing one: #931. Essentially, I envision adding optional properties to the API event source definition the correspond to the properties available on the AWS::ApiGateway::Method resource type: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html. Then those properties if provided would be translated into the swagger definition for that method. What are your thoughts on this? |
I think that this is a great idea and would be a good feature! Thank you for bringing this up. |
Released with v1.13.0 |
It would be nice to add options to the
API
event source forAWS::Serverless::Function
for models (request and response) and validators similar to how authorizers can be defined in there now without having to dive into swagger.Originally posted by @beck3905 in #850 (comment)
Models in swagger: https://swagger.io/docs/specification/2-0/describing-request-body/ (see Object Payload section).
I think we should add models to the
Serverless::Api
resource and allow events to reference them:The text was updated successfully, but these errors were encountered: