mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
31 lines
751 B
JavaScript
31 lines
751 B
JavaScript
'use strict';
|
|
|
|
class TestPluginWithCollidingFunctionEventError {
|
|
constructor(serverless) {
|
|
serverless.configSchemaHandler.defineProvider('someProvider', {
|
|
function: {
|
|
properties: {
|
|
handler: { type: 'string' },
|
|
},
|
|
},
|
|
functionEvents: {
|
|
existingEvent: {
|
|
type: 'object',
|
|
properties: { existingProp: { type: 'string' } },
|
|
},
|
|
},
|
|
});
|
|
|
|
serverless.configSchemaHandler.defineFunctionEvent('someProvider', 'existingEvent', {
|
|
type: 'object',
|
|
properties: {
|
|
someProperty: { type: 'string' },
|
|
},
|
|
required: ['someProperty'],
|
|
additionalProperties: false,
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = TestPluginWithCollidingFunctionEventError;
|