Skip to content

Commit

Permalink
refactor(Config Schema): Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 1, 2020
1 parent 57996a0 commit c51e293
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/classes/ConfigSchemaHandler/index.js
Expand Up @@ -207,13 +207,15 @@ class ConfigSchemaHandler {
}

relaxProviderSchema() {
// provider
this.schema.properties.provider.additionalProperties = true;

// functions[]
this.schema.properties.functions.patternProperties[
FUNCTION_NAME_PATTERN
].additionalProperties = true;

// Do not report errors regarding unsupported function events as
// their schemas are not defined.
// functions[].events[]
if (
Array.isArray(
this.schema.properties.functions.patternProperties[FUNCTION_NAME_PATTERN].properties.events
Expand Down

0 comments on commit c51e293

Please sign in to comment.