Skip to content

Config schema: Define AWS "sns" function event properties #8035

Description

@medikoo

Use case description

It'll be nice to have sns 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 sns event properties

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions