serverless/test/fixtures/programmatic/config-schema-extensions-error/test-plugin-with-colliding-function-event-property.js
2024-05-29 11:51:04 -04:00

27 lines
616 B
JavaScript

'use strict'
class TestPluginWithCollidingFunctionEventPropertyError {
constructor(serverless) {
serverless.configSchemaHandler.defineProvider('someProvider', {
functionEvents: {
existingEvent: {
type: 'object',
properties: { existingProp: { type: 'string' } },
},
},
})
serverless.configSchemaHandler.defineFunctionEventProperties(
'someProvider',
'existingEvent',
{
properties: {
existingProp: { type: 'string' },
},
},
)
}
}
module.exports = TestPluginWithCollidingFunctionEventPropertyError