diff --git a/lib/schemapack.js b/lib/schemapack.js index c4227a3..87e61a4 100644 --- a/lib/schemapack.js +++ b/lib/schemapack.js @@ -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')); }