Hi,
I’m looking to add config validation to my plugin. The plugin uses properties on a lambda’s http
event:
myFunction:
events:
- http:
method: get
myCustomProperty:
customSetting: aValue
However, when I use this code, it overrides the whole validation for http
events:
const schema = {
type: 'object',
properties: {
myCustomProperty: {
type: 'object',
properties: {
customSetting: { type: 'string' }
}
}
}
}
serverless.configSchemaHandler.defineFunctionEvent('aws', 'http', schema);
What’s the correct way of extending the validation schema?
Thanks