ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

fix: predefine type for runScheduleOnInit option #71

Closed orimdominic closed 3 years ago

orimdominic commented 3 years ago

This PR aims to fix the warning generated by running the plugin.

The warning:

Serverless: Deprecation warning: CLI options definitions were upgraded with "type" property 
(which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine 
type for introduced options:
            - ServerlessOfflineScheduler for "runSchedulesOnInit"
            Please report this issue in plugin issue tracker.
            Starting with next major release, this will be communicated with a thrown error.
            More Info: https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA

Fixes #70