serverless/test/fixtures/programmatic/configSchemaExtensionsError/test-plugin-with-colliding-function-event-property.js
2021-04-09 16:10:21 +02:00

23 lines
587 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;