File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ You can use the `options` property to customize the behavior of the plugin.
153
153
" name" : " @nestjs/swagger" ,
154
154
" options" : {
155
155
" classValidatorShim" : false ,
156
- " introspectComments" : true
156
+ " introspectComments" : true ,
157
+ " skipAutoHttpCode" : true
157
158
}
158
159
}
159
160
]
@@ -171,6 +172,7 @@ export interface PluginOptions {
171
172
dtoKeyOfComment? : string ;
172
173
controllerKeyOfComment? : string ;
173
174
introspectComments? : boolean ;
175
+ skipAutoHttpCode? : boolean ;
174
176
}
175
177
```
176
178
@@ -210,6 +212,11 @@ export interface PluginOptions {
210
212
<td><code>false</code></td>
211
213
<td>If set to true, plugin will generate descriptions and example values for properties based on comments</td>
212
214
</tr >
215
+ <tr >
216
+ <td><code>skipAutoHttpCode</code></td>
217
+ <td><code>false</code></td>
218
+ <td>Disables the automatic addition of <code>@HttpCode()</code> in controllers</td>
219
+ </tr >
213
220
</table >
214
221
215
222
Make sure to delete the ` /dist ` folder and rebuild your application whenever plugin options are updated.
You can’t perform that action at this time.
0 commit comments