Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

fix: Adds json schema validator for timezone property #25

Merged
merged 7 commits into from
Mar 30, 2022
Merged

fix: Adds json schema validator for timezone property #25

merged 7 commits into from
Mar 30, 2022

Conversation

KillDozerX2
Copy link
Contributor

Fork of #17, @nyoungstudios commits are here as well.

@KillDozerX2
Copy link
Contributor Author

@pgrzesik if this could be merged, I can continue with my fork to finish #13 and #21 as well.

Copy link
Contributor

@pgrzesik pgrzesik left a 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) {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pgrzesik done

Copy link
Contributor

@pgrzesik pgrzesik left a 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 👍

@pgrzesik pgrzesik changed the title Adds json schema validator to fix issue #14 fix: Adds json schema validator for timezone property Mar 30, 2022
@pgrzesik pgrzesik merged commit b8a9508 into serverless:master Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants