diff --git a/CHANGELOG.md b/CHANGELOG.md index 993c9a1f..50dbaa6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Filter query/path parameters before substituting variables (see [issue 36](https://github.com/KNowledgeOnWebScale/walder/issues/36)) - 404 error on /favicon.ico in examples (see [issue 31](https://github.com/KNowledgeOnWebScale/walder/issues/31)) +- Deprecation warning for x-walder-resources.path is wrong and does not appear (see [issue 52](https://github.com/KNowledgeOnWebScale/walder/issues/52)) ## [2.0.3] - 2020-08-31 diff --git a/lib/parsers/resource-parser.js b/lib/parsers/resource-parser.js index f761f605..b0a725e0 100644 --- a/lib/parsers/resource-parser.js +++ b/lib/parsers/resource-parser.js @@ -27,7 +27,7 @@ module.exports = (data, cwd, logger = null) => { if (data) { if (data.path) { if (logger) { - this.logger.warn(`"x-walder-resources.root" is deprecated. Use "x-walder-resources.root" instead.`); + logger.warn(`"x-walder-resources.path" is deprecated. Use "x-walder-resources.root" instead.`); } data.root = data.path; diff --git a/lib/walder.js b/lib/walder.js index 554d89d5..4e41a7c8 100644 --- a/lib/walder.js +++ b/lib/walder.js @@ -126,7 +126,7 @@ module.exports = class Walder { } // Resources - const resources = parseResources(yamlData['x-walder-resources'], this.cwd); + const resources = parseResources(yamlData['x-walder-resources'], this.cwd, this.logger); // Data sources const graphQLLDHandler = new GraphQLLDHandler(this.logger);