Skip to content

Commit

Permalink
feat(Config Schema): Remove validation mode related deprecation
Browse files Browse the repository at this point in the history
It'll be re-added in context of v3
  • Loading branch information
medikoo committed Oct 7, 2021
1 parent 70e2736 commit a9bf916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/deprecations.md
Expand Up @@ -150,6 +150,8 @@ Ensure to always format CLI command as `sls [command..] [options...]`

Deprecation code: `CONFIG_VALIDATION_MODE_DEFAULT`

_Note: We've resigned from this deprecation in the context of v2 (it'll be re-added in the context of v3). We continue to advise configuring services with `configValidationMode: error` setting._

Starting with v3.0.0, Serverless will throw on configuration errors by default. This is changing from the previous default, `configValidationMode: warn`

Learn more about configuration validation here: http://slss.io/configuration-validation
Expand Down
7 changes: 0 additions & 7 deletions lib/classes/ConfigSchemaHandler/index.js
Expand Up @@ -157,13 +157,6 @@ class ConfigSchemaHandler {
{ color: 'orange' }
);
this.serverless.cli.log(' ');
if (!this.serverless.configurationInput.configValidationMode) {
this.serverless._logDeprecation(
'CONFIG_VALIDATION_MODE_DEFAULT',
'Starting with next major, Serverless will throw on configuration errors by default. ' +
'Adapt to this behavior now by adding "configValidationMode: error" to service configuration'
);
}
}
}
}
Expand Down

0 comments on commit a9bf916

Please sign in to comment.