Skip to content
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

Config schema: Define AWS "stream" function event properties #8034

Closed
medikoo opened this issue Jul 31, 2020 · 0 comments · Fixed by #8201
Closed

Config schema: Define AWS "stream" function event properties #8034

medikoo opened this issue Jul 31, 2020 · 0 comments · Fixed by #8201

Comments

@medikoo
Copy link
Contributor

medikoo commented Jul 31, 2020

Use case description

It'll be nice to have stream event fully covered by schema validation

Proposed solution

Follow up to #6562, with which only schema placeholder for event was configured.

Define schema of all stream event properties

Should be done directly in: lib/plugins/aws/package/compile/events/stream/index.js:

// TODO: Complete schema, see https://github.com/serverless/serverless/issues/8034
this.serverless.configSchemaHandler.defineFunctionEvent('aws', 'stream', {
anyOf: [{ type: 'string' }, { type: 'object' }],
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant