express-openapi-generator
Advanced tools
Comparing version
@@ -27,2 +27,13 @@ import { OpenAPIV3 } from 'openapi-types'; | ||
/** | ||
* Initializes and returns an instance of a DocumentBuilder that is not attached to the | ||
* static reference of DocumentBuilder. | ||
* Allows you to create a second document builder object, export it and use however desired. | ||
* | ||
* **Does NOT** override the underlying singleton instance | ||
* | ||
* @param documentStub The minimum required OpenApiv3 skeleton spec | ||
* @returns The newly created document builder object | ||
*/ | ||
static initializeDetachedDocument(documentStub: OpenAPIV3.Document): DocumentBuilder; | ||
/** | ||
* Retrieves the current document builder instance. | ||
@@ -29,0 +40,0 @@ * Used to retrieve references across modules. |
@@ -297,2 +297,15 @@ "use strict"; | ||
/** | ||
* Initializes and returns an instance of a DocumentBuilder that is not attached to the | ||
* static reference of DocumentBuilder. | ||
* Allows you to create a second document builder object, export it and use however desired. | ||
* | ||
* **Does NOT** override the underlying singleton instance | ||
* | ||
* @param documentStub The minimum required OpenApiv3 skeleton spec | ||
* @returns The newly created document builder object | ||
*/ | ||
static initializeDetachedDocument(documentStub) { | ||
return new DocumentBuilder(documentStub); | ||
} | ||
/** | ||
* Retrieves the current document builder instance. | ||
@@ -299,0 +312,0 @@ * Used to retrieve references across modules. |
{ | ||
"name": "express-openapi-generator", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "An Express plugin that can parse an app and generate a OpenApiv3 document.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
94992
1.18%1856
1.31%