Skip to content

Commit d6b02d1

Browse files
committed
chore: Support object types for reqValidatorName
1 parent 4b9c9c7 commit d6b02d1

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,16 @@ class ServerlessReqValidatorPlugin {
4949
// Create schema for your properties. For reference use https://github.com/ajv-validator/ajv
5050
serverless.configSchemaHandler.defineFunctionEventProperties('aws', 'http', {
5151
properties: {
52-
reqValidatorName: { type: 'string' },
52+
reqValidatorName: {
53+
anyOf: [
54+
{ type: 'string' },
55+
{ type: 'object',
56+
properties: {
57+
'Fn::ImportValue': { type: 'string' }
58+
}
59+
},
60+
]
61+
},
5362
},
5463
});
5564

0 commit comments

Comments
 (0)