@tsed/swagger
Advanced tools
Comparing version 4.0.0 to 4.0.1
import { Type } from "@tsed/core"; | ||
import { Parameter, Schema } from "swagger-schema-official"; | ||
import { ParamMetadata } from "../../common/filters/class/ParamMetadata"; | ||
import { ParamMetadata } from "@tsed/common"; | ||
import { OpenApiPropertiesBuilder } from "./OpenApiPropertiesBuilder"; | ||
@@ -5,0 +5,0 @@ export declare class OpenApiParamsBuilder extends OpenApiPropertiesBuilder { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@tsed/core"); | ||
const ParamRegistry_1 = require("../../common/filters/registries/ParamRegistry"); | ||
const common_1 = require("@tsed/common"); | ||
const utils_1 = require("../utils"); | ||
@@ -13,3 +13,3 @@ const OpenApiPropertiesBuilder_1 = require("./OpenApiPropertiesBuilder"); | ||
this.name = `${core_1.nameOf(target)}${methodClassName.charAt(0).toUpperCase() + methodClassName.slice(1)}`; | ||
this.injectedParams = ParamRegistry_1.ParamRegistry.getParams(target, methodClassName); | ||
this.injectedParams = common_1.ParamRegistry.getParams(target, methodClassName); | ||
} | ||
@@ -16,0 +16,0 @@ build() { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@tsed/core"); | ||
const mapReturnedResponse_1 = require("../../common/mvc/utils/mapReturnedResponse"); | ||
const common_1 = require("@tsed/common"); | ||
function Returns(...args) { | ||
@@ -15,3 +15,3 @@ const configuration = {}; | ||
return core_1.Store.decorate((store) => { | ||
const response = mapReturnedResponse_1.mapReturnedResponse(options); | ||
const response = common_1.mapReturnedResponse(options); | ||
if (code !== undefined) { | ||
@@ -18,0 +18,0 @@ store.merge("responses", { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@tsed/core"); | ||
const mapReturnedResponse_1 = require("../../common/mvc/utils/mapReturnedResponse"); | ||
const common_1 = require("@tsed/common"); | ||
function ReturnsArray(...args) { | ||
@@ -16,3 +16,3 @@ const configuration = {}; | ||
return core_1.Store.decorate((store) => { | ||
const response = mapReturnedResponse_1.mapReturnedResponse(options); | ||
const response = common_1.mapReturnedResponse(options); | ||
if (code !== undefined) { | ||
@@ -19,0 +19,0 @@ store.merge("responses", { |
/// <reference types="express" /> | ||
import * as Express from "express"; | ||
import { Spec } from "swagger-schema-official"; | ||
import { ServerSettingsService } from "../../common/config/services/ServerSettingsService"; | ||
import { ControllerService } from "../../common/mvc/services/ControllerService"; | ||
import { ServerSettingsService, ControllerService } from "@tsed/common"; | ||
export declare class SwaggerService { | ||
@@ -7,0 +6,0 @@ private controllerService; |
@@ -9,6 +9,3 @@ "use strict"; | ||
const ts_log_debug_1 = require("ts-log-debug"); | ||
const ServerSettingsService_1 = require("../../common/config/services/ServerSettingsService"); | ||
const service_1 = require("../../common/di/decorators/service"); | ||
const decorators_1 = require("../../common/mvc/decorators"); | ||
const ControllerService_1 = require("../../common/mvc/services/ControllerService"); | ||
const common_1 = require("@tsed/common"); | ||
const OpenApiEndpointBuilder_1 = require("../class/OpenApiEndpointBuilder"); | ||
@@ -152,6 +149,6 @@ const utils_1 = require("../utils"); | ||
SwaggerService = tslib_1.__decorate([ | ||
service_1.Service(), | ||
tslib_1.__param(2, decorators_1.ExpressApplication), | ||
tslib_1.__metadata("design:paramtypes", [ControllerService_1.ControllerService, | ||
ServerSettingsService_1.ServerSettingsService, Function]) | ||
common_1.Service(), | ||
tslib_1.__param(2, common_1.ExpressApplication), | ||
tslib_1.__metadata("design:paramtypes", [common_1.ControllerService, | ||
common_1.ServerSettingsService, Function]) | ||
], SwaggerService); | ||
@@ -158,0 +155,0 @@ exports.SwaggerService = SwaggerService; |
@@ -1,2 +0,2 @@ | ||
import { PathParamsType } from "../../common/mvc/interfaces/PathParamsType"; | ||
import { PathParamsType } from "@tsed/common"; | ||
/** */ | ||
@@ -3,0 +3,0 @@ export declare function toSwaggerPath(expressPath: PathParamsType): PathParamsType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@tsed/core"); | ||
const JsonSchema_1 = require("../../common/jsonschema/class/JsonSchema"); | ||
const common_1 = require("@tsed/common"); | ||
/** */ | ||
@@ -26,3 +26,3 @@ function toSwaggerPath(expressPath) { | ||
function swaggerType(type) { | ||
return JsonSchema_1.JsonSchema.getJsonType(type); | ||
return common_1.JsonSchema.getJsonType(type); | ||
} | ||
@@ -29,0 +29,0 @@ exports.swaggerType = swaggerType; |
{ | ||
"name": "@tsed/swagger", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Swagger package for Ts.ED framework", | ||
@@ -11,3 +11,3 @@ "main": "./lib/index.js", | ||
"peerDependencies": { | ||
"@tsed/common": "4.0.0", | ||
"@tsed/common": "4.0.1", | ||
"@types/swagger-schema-official": "^2.0.7", | ||
@@ -14,0 +14,0 @@ "swagger-ui-express": "^2.0.15" |
import {deepExtends, nameOf, Type} from "@tsed/core"; | ||
import {BaseParameter, BodyParameter, Parameter, Schema} from "swagger-schema-official"; | ||
import {ParamMetadata} from "../../common/filters/class/ParamMetadata"; | ||
import {ParamRegistry} from "../../common/filters/registries/ParamRegistry"; | ||
import {ParamMetadata, ParamRegistry} from "@tsed/common"; | ||
import {swaggerType} from "../utils"; | ||
@@ -7,0 +6,0 @@ import {OpenApiPropertiesBuilder} from "./OpenApiPropertiesBuilder"; |
import {Store, Type} from "@tsed/core"; | ||
import {mapReturnedResponse} from "../../common/mvc/utils/mapReturnedResponse"; | ||
import {mapReturnedResponse} from "@tsed/common"; | ||
import {ISwaggerResponses} from "../interfaces/ISwaggerResponses"; | ||
@@ -4,0 +4,0 @@ |
import {Store, Type} from "@tsed/core"; | ||
import {mapReturnedResponse} from "../../common/mvc/utils/mapReturnedResponse"; | ||
import {mapReturnedResponse} from "@tsed/common"; | ||
import {ISwaggerResponses} from "../interfaces/ISwaggerResponses"; | ||
@@ -4,0 +4,0 @@ |
@@ -7,8 +7,5 @@ import {deepExtends, nameOf, Store} from "@tsed/core"; | ||
import {$log} from "ts-log-debug"; | ||
import {ServerSettingsService} from "../../common/config/services/ServerSettingsService"; | ||
import {Service} from "../../common/di/decorators/service"; | ||
import {ControllerProvider} from "../../common/mvc/class/ControllerProvider"; | ||
import {EndpointMetadata} from "../../common/mvc/class/EndpointMetadata"; | ||
import {ExpressApplication} from "../../common/mvc/decorators"; | ||
import {ControllerService} from "../../common/mvc/services/ControllerService"; | ||
import { | ||
ServerSettingsService, Service, ControllerProvider, EndpointMetadata, ExpressApplication, ControllerService | ||
} from "@tsed/common"; | ||
import {OpenApiEndpointBuilder} from "../class/OpenApiEndpointBuilder"; | ||
@@ -15,0 +12,0 @@ import {ISwaggerPaths, ISwaggerSettings} from "../interfaces"; |
import {deepExtends} from "@tsed/core"; | ||
import {JsonSchema} from "../../common/jsonschema/class/JsonSchema"; | ||
import {PathParamsType} from "../../common/mvc/interfaces/PathParamsType"; | ||
import {JsonSchema, PathParamsType} from "@tsed/common"; | ||
@@ -5,0 +4,0 @@ /** */ |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
161022
92
3026