mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
31 lines
713 B
JavaScript
31 lines
713 B
JavaScript
'use strict'
|
|
|
|
class TestPluginWithComplexEventWithoutObjectDefinitionError {
|
|
constructor(serverless) {
|
|
serverless.configSchemaHandler.defineProvider('someProvider', {
|
|
function: {
|
|
properties: {
|
|
handler: { type: 'string' },
|
|
},
|
|
},
|
|
functionEvents: {
|
|
existingComplexEvent: {
|
|
anyOf: [{ type: 'string' }, { type: 'integer' }],
|
|
},
|
|
},
|
|
})
|
|
|
|
serverless.configSchemaHandler.defineFunctionEventProperties(
|
|
'someProvider',
|
|
'existingComplexEvent',
|
|
{
|
|
properties: {
|
|
someProperty: { type: 'string' },
|
|
},
|
|
},
|
|
)
|
|
}
|
|
}
|
|
|
|
module.exports = TestPluginWithComplexEventWithoutObjectDefinitionError
|