Skip to content

Commit 36a469b

Browse files
authored
feat: Introduce schema validation for module property (#641)
1 parent 4c57634 commit 36a469b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

index.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,18 @@ class ServerlessPythonRequirements {
115115
this.serverless = serverless;
116116
this.servicePath = this.serverless.config.servicePath;
117117
this.warningLogged = false;
118-
118+
if (
119+
this.serverless.configSchemaHandler &&
120+
this.serverless.configSchemaHandler.defineFunctionProperties
121+
) {
122+
this.serverless.configSchemaHandler.defineFunctionProperties('aws', {
123+
properties: {
124+
module: {
125+
type: 'string',
126+
},
127+
},
128+
});
129+
}
119130
this.commands = {
120131
requirements: {
121132
commands: {

0 commit comments

Comments
 (0)