We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f24ade + a0c2849 commit cd32a0bCopy full SHA for cd32a0b
1 file changed
src/index.js
@@ -46,6 +46,14 @@ class ServerlessReqValidatorPlugin {
46
47
this._beforeDeploy = this.beforeDeploy.bind(this)
48
49
+ // Create schema for your properties. For reference use https://github.com/ajv-validator/ajv
50
+ serverless.configSchemaHandler.defineFunctionEventProperties('aws', 'http', {
51
+ properties: {
52
+ reqValidatorName: { type: 'string' },
53
+ },
54
+ required: ['reqValidatorName'],
55
+ });
56
+
57
this.hooks = {
58
'before:package:finalize': this._beforeDeploy
59
};
0 commit comments