@deboxsoft/module-core
Advanced tools
Comparing version 2.6.87 to 2.6.88
@@ -9,3 +9,3 @@ import * as _zod from 'zod'; | ||
export { default as deepMerge } from 'ts-deepmerge'; | ||
import { OpenAPIObject } from 'openapi3-ts'; | ||
import { OpenAPIObject, InfoObject } from 'openapi3-ts'; | ||
export * from 'openapi3-ts'; | ||
@@ -693,5 +693,5 @@ import { OpenAPIGenerator, OpenAPIRegistry } from '@asteasolutions/zod-to-openapi'; | ||
type OpenApiManagerOptions = { | ||
version?: "3.0.0" | "3.0.1" | "3.0.2" | "3.0.3" | "3.1.0"; | ||
info: InfoObject; | ||
}; | ||
declare const createOpenApiManager: (opts?: OpenApiManagerOptions) => OpenApiManager; | ||
declare const createOpenApiManager: (opts: OpenApiManagerOptions) => OpenApiManager; | ||
declare const hasOpenApiManager: () => boolean; | ||
@@ -698,0 +698,0 @@ declare const getOpenApiManager: () => OpenApiManager; |
@@ -775,3 +775,3 @@ import { __export, CONFIG_KEY, Container, ContainerDIClass, DbxError, getConfig, getConfigService, __reExport } from './chunk-3BIZMSTQ.js'; | ||
var KEY = "OPEN-API-MANAGER-KEY"; | ||
var createOpenApiManager = (opts = {}) => { | ||
var createOpenApiManager = (opts) => { | ||
const openApiManager = new OpenApiManager(opts); | ||
@@ -793,3 +793,6 @@ Container.set(KEY, openApiManager); | ||
getOpenApiGenerator(opts) { | ||
return new OpenAPIGenerator(this.registry.definitions, this.opts.version || "3.1.0"); | ||
return new OpenAPIGenerator( | ||
this.registry.definitions, | ||
this.opts.info.version | ||
); | ||
} | ||
@@ -796,0 +799,0 @@ getOpenApiRegistry() { |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.6.87", | ||
"version": "2.6.88", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4446
148151