mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
23 lines
587 B
JavaScript
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;
|