-
Notifications
You must be signed in to change notification settings - Fork 207
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
Add request schema to an http event for the stepfunction for validation #554
Comments
I believe it's because there's no action taken to create an API Gateway model |
can I do this manually? Or shouldn't this be done by the plugin? |
I would also be interested in a solution. Seems like schema is not at all implemented, only template. |
@zoiman you could use a request schema with a function aka. lambda and kick off the step function from there. |
I think a better idea here is to create the Model for Api Gateway. Let me try to create a PR this week for it. |
This is turning out to be a bit more complicated than I'd thought, might take me some time to finish. Please watch this repo for updates |
I am trying the schema validation with the file method, same as serverless docs, but in step functions it doesn't work, so this future proposal could help for this too. |
🎉 This issue has been resolved in version 3.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is a Feature Proposal
Description
For feature proposals:
It would be useful to have the possibility to add a request schema to a http event for the statemachine similar how you would add it for a function. This way, none valid input will be rejected before it hits the statemachine and there is no invocation which reduces cost.
I tried to add the event schema to my statemachine which did not result in any error, however no model was created in the apigateway. The generated
serverless-state.json
looked like this:In comparison a similar request schema for a function looks like this:
The text was updated successfully, but these errors were encountered: