arabold/serverless-sentry-plugin

Missing schema for `functions[].sentry` properties

medikoo opened this issue · 0 comments

Serverless Framework, over year ago was equipped with validation schema for all its service configuration. It allows to quickly pin point eventual errors developers are making when they're constructing service configurations.

It was provided with utilities for plugins so all properties that are introduced by them can also be easily accompanied with needed schema: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema

Serverless Framework is about to release a v3, and with that version it's scheduled that by default any configuration errors (and undefined property is signaled as an error) will be reported with crashes and not warnings as it is in v2.

This will affect users which configure functions[].sentry, (custom namespace is excluded from that, as we allow free-form user configuration in that, still it's also good to provide schema for any properties in custom that plugin introduces).

It'll be great if plugin is upgraded and defines schemas for properties it introduces