EliuX / serverless-migrate-plugin

Serverless plugin for running migrations
MIT License
7 stars 10 forks source link

Missing "type" property for serverless CLI options #25

Closed captaincode-generic closed 2 years ago

captaincode-generic commented 3 years ago

When running this plugin commands with serverless, like sls migrate create -n <your-migration-name>

We are getting next 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:
             - MigratePlugin for "state-file", "store", "date-format", "file-extension", "name", "template-file"
            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

According to this:

Starting with v3.0.0 any option extensions which does not have type defined will be communicated with a thrown error

To fix this, the type property should be added to the options:

EliuX commented 2 years ago

Thanks for your collaboration