openapi-backend
Advanced tools
Comparing version
@@ -33,2 +33,3 @@ "use strict"; | ||
const refparser_1 = require("./refparser"); | ||
const dereference_json_schema_1 = require("dereference-json-schema"); | ||
const mock_json_schema_1 = require("mock-json-schema"); | ||
@@ -138,2 +139,6 @@ const router_1 = require("./router"); | ||
} | ||
else if (this.quick && typeof this.inputDocument === 'object') { | ||
// use sync dereference in quick mode | ||
this.definition = (0, dereference_json_schema_1.dereferenceSync)(this.inputDocument); | ||
} | ||
else { | ||
@@ -140,0 +145,0 @@ this.definition = (await (0, refparser_1.dereference)(this.document || this.inputDocument)); |
{ | ||
"name": "openapi-backend", | ||
"description": "Build, Validate, Route, Authenticate and Mock using OpenAPI definitions. Framework-agnostic", | ||
"version": "5.7.0", | ||
"version": "5.8.0", | ||
"author": "Viljami Kuosmanen <viljami@viljami.io>", | ||
@@ -49,2 +49,3 @@ "funding": "https://github.com/sponsors/anttiviljami", | ||
"cookie": "^0.5.0", | ||
"dereference-json-schema": "^0.2.1", | ||
"lodash": "^4.17.15", | ||
@@ -51,0 +52,0 @@ "mock-json-schema": "^1.0.7", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
151760
0.35%2431
0.21%10
11.11%+ Added