<!-- ⚠️⚠️ 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 `websocket` 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) - [ ] `websocketsApiName` - [ ] `websocketsApiRouteSelectionExpression` - [ ] `apiGateway.websocketApiId` - [ ] `logs.websocket` 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 `websocket` event properties Should be done directly in: `lib/plugins/aws/package/compile/events/websockets/index.js`: https://github.com/serverless/serverless/blob/d403d9c6d3dccdfc9f79d7c42b3cbc1a06fcfac0/lib/plugins/aws/package/compile/events/websockets/index.js#L54-L57
Use case description
It'll be nice to have
websocketevent fully covered by schema validationProposed solution
providerlevel (that's part of Config schema: Define AWS "provider" properties #8022)websocketsApiNamewebsocketsApiRouteSelectionExpressionapiGateway.websocketApiIdlogs.websocketShould be done directly in:
lib/plugins/aws/provider/awsProvider.js:serverless/lib/plugins/aws/provider/awsProvider.js
Lines 141 to 142 in d403d9c
websocketevent propertiesShould be done directly in:
lib/plugins/aws/package/compile/events/websockets/index.js:serverless/lib/plugins/aws/package/compile/events/websockets/index.js
Lines 54 to 57 in d403d9c