@marxlnfcs/nest-swagger-decorators
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -88,3 +88,3 @@ "use strict"; | ||
} | ||
// set params | ||
// set query | ||
if ((0, utils_1.isObject)(options.query)) { | ||
@@ -172,5 +172,9 @@ Object.entries(options.query).map(([fieldName, declaration]) => { | ||
if (exception instanceof common_1.HttpException) { | ||
decorators.push((0, swagger_1.ApiResponse)({ | ||
status: exception.getStatus(), | ||
description: (0, utils_1.getStatusMessage)(exception.getStatus()) | ||
})); | ||
} | ||
else { | ||
decorators.push(); | ||
// unsupported | ||
} | ||
@@ -177,0 +181,0 @@ }); |
{ | ||
"name": "@marxlnfcs/nest-swagger-decorators", | ||
"private": false, | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Extended decorators for the @nestjs/swagger module", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
211490
1166