adding multifile swagger examples, adding tests to validate merging, merge and validate support for swagger 20

This commit is contained in:
Erik Mendoza
2022-04-19 19:33:26 -05:00
parent 90a191dc4c
commit ae43c43f6f
29 changed files with 661 additions and 5 deletions

View File

@@ -62,7 +62,9 @@ class SchemaPack {
validate() {
let input = this.input,
json,
specParseResult;
specParseResult,
isFolder = this.input.type === 'folder';
this.computedOptions = Object.assign({ isFolder }, this.computedOptions);
if (!input) {
return {
result: false,