diff --git a/lib/dictionary.js b/lib/dictionary.js index ad7fddf..feae720 100644 --- a/lib/dictionary.js +++ b/lib/dictionary.js @@ -31,6 +31,10 @@ module.exports = class ValidatorDictionary { [httpPart]: validator } } + } else if (this[kSchemas][path][method] == null) { + this[kSchemas][path][method] = { + [httpPart]: validator + } } else { this[kSchemas][path][method][httpPart] = validator }