mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Change validation input when version is 3.1.x
if the option includeWebhooks is false and there are no paths (only webhooks or componentes) throw error.
This commit is contained in:
@@ -108,7 +108,7 @@ class SchemaPack {
|
||||
return this.validationResult;
|
||||
}
|
||||
|
||||
specParseResult = concreteUtils.parseSpec(json);
|
||||
specParseResult = concreteUtils.parseSpec(json, this.computedOptions);
|
||||
|
||||
if (!specParseResult.result) {
|
||||
// validation failed
|
||||
@@ -190,7 +190,7 @@ class SchemaPack {
|
||||
}
|
||||
|
||||
try {
|
||||
rootFiles = parse.getRootFiles(input, concreteUtils.inputValidation, files);
|
||||
rootFiles = parse.getRootFiles(input, concreteUtils.inputValidation, this.computedOptions, files);
|
||||
}
|
||||
catch (e) {
|
||||
return cb(null, {
|
||||
|
||||
Reference in New Issue
Block a user