mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
35 lines
786 B
JavaScript
35 lines
786 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
|