mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Skipped optimization based stacklimit configuration for validation as default is true
This commit is contained in:
@@ -373,7 +373,6 @@ class SchemaPack {
|
||||
validateTransaction(transactions, callback) {
|
||||
let schema = this.openapi,
|
||||
componentsAndPaths,
|
||||
analysis,
|
||||
options = this.computedOptions,
|
||||
schemaCache = {
|
||||
schemaResolutionCache: this.schemaResolutionCache,
|
||||
@@ -382,15 +381,6 @@ class SchemaPack {
|
||||
matchedEndpoints = [],
|
||||
jsonSchemaDialect = schema.jsonSchemaDialect;
|
||||
|
||||
// Only change the stack limit if the optimizeConversion option is true
|
||||
if (options.optimizeConversion) {
|
||||
// Deciding stack limit based on size of the schema, number of refs and number of paths.
|
||||
analysis = schemaUtils.analyzeSpec(schema);
|
||||
|
||||
// Update options on the basis of analysis.
|
||||
options = schemaUtils.determineOptions(analysis, options);
|
||||
}
|
||||
|
||||
if (!this.validated) {
|
||||
return callback(new OpenApiErr('The schema must be validated before attempting conversion'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user