-
Notifications
You must be signed in to change notification settings - Fork 12
fix: Adds json schema validator for timezone
property
#25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @KillDozerX2 - I have only one minor comment, please let me know what do you think
index.js
Outdated
@@ -121,6 +122,17 @@ function convertCrontabs() { | |||
class ServerlessLocalCrontabs { | |||
constructor(serverless, options) { | |||
this.serverless = serverless; | |||
if (this.serverless.configSchemaHandler) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not mentioning it at first - I've just double checked and there can be a situation where the configSchemaHandler
is defined, but the defineFunctionEventProperties
method is not - let's also check for the existence of this method before trying to call it, okay? It was added in 2.11.0
so let's not break users that are on lower versions: https://github.com/serverless/serverless/blob/main/CHANGELOG.md#2110-2020-11-06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pgrzesik done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @KillDozerX2 - looks good 👍
timezone
property
Fork of #17, @nyoungstudios commits are here as well.