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