<!-- ⚠️⚠️ Acknowledge ALL below remarks --> <!-- ⚠️⚠️ Request may not be processed if it doesn't meet outlined criteria --> <!-- ⚠️⚠️ Search existing issues to avoid creating duplicates --> <!-- ⚠️⚠️ Plugin enhancements should be proposed at plugin repository, not here --> <!-- ⚠️⚠️ Answer ALL required questions below --> <!-- Q1: Describe the problem (use case) that needs to be solved --> ### Use case description It'll be nice to have `http` event fully covered by schema validation <!-- Q2: Propose solution (e.g. provide configuration example) Note: This is optional, remove this section if you do not wish to propose anything at this point --> ### Proposed solution 1. Define schema for following properties at `provider` level (that's part of #8022) - [x] `apiGateway` (`apiKeySourceType`, `binaryMediaTypes`, `description`, `metrics`, `minimumCompressionSize`, `restApiId`, `restApiRootResourceId`, `restApiRootResources`, `websocketApiId`) - [x] `apiKeys` - [x] `apiName` - [x] `endpointType` - [x] `logs.restApi` (Addressed with #8309) - [x] `resourcePolicy` (Addressed with https://github.com/serverless/serverless/pull/8051) - [x] `tracing.apiGateway` (Addressed with https://github.com/serverless/serverless/pull/8222) - [x] `usagePlan` Should be done directly in: `lib/plugins/aws/provider/awsProvider.js`: https://github.com/serverless/serverless/blob/d403d9c6d3dccdfc9f79d7c42b3cbc1a06fcfac0/lib/plugins/aws/provider/awsProvider.js#L141-L142 2. Define schema of all `http` event properties _Done in #8301_
Use case description
It'll be nice to have
httpevent fully covered by schema validationProposed solution
providerlevel (that's part of Config schema: Define AWS "provider" properties #8022)apiGateway(apiKeySourceType,binaryMediaTypes,description,metrics,minimumCompressionSize,restApiId,restApiRootResourceId,restApiRootResources,websocketApiId)apiKeysapiNameendpointTypelogs.restApi(Addressed with feat(AJV): Add Rest api logs definition #8309)resourcePolicy(Addressed with fix(Config Schema): validate resourcePolicy is array #8051)tracing.apiGateway(Addressed with Add base definition of properties #8222)usagePlanShould be done directly in:
lib/plugins/aws/provider/awsProvider.js:serverless/lib/plugins/aws/provider/awsProvider.js
Lines 141 to 142 in d403d9c
httpevent propertiesDone in #8301