DianaIonita / serverless-api-gateway-throttling

A plugin for the Serverless framework which configures throttling for API Gateway endpoints.
ISC License
69 stars 7 forks source link

Configuration warning #13

Closed s4nt14go closed 3 years ago

s4nt14go commented 3 years ago

Hello Dianalonita! Thanks for your plugin, it's very helpful!

When I deploy I get this warning:

Serverless: Configuration warning:
Serverless:   at 'functions.create.events[0].http': unrecognized property 'throttling'
Serverless: Learn more about configuration validation here: http://slss.io/configuration-validation

I'm using:

Framework Core: 2.9.0
Plugin: 4.1.1
SDK: 2.3.2
Components: 3.3.0

Also I found that the line throttling: must be the next line following method: x to work

Thanks

DianaIonita commented 3 years ago

Hi @s4nt14go,

Thanks for raising the issue. If you use the latest version of the serverless framework, 2.16.0 and the latest version of this plugin, 1.1.0, do you still see validation errors?

s4nt14go commented 3 years ago

Hey @DianaIonita,

Updating to serverless@2.16.0 fixed both issues!

Many thanks for your help!