diff --git a/src/metadataGeneration/parameterGenerator.ts b/src/metadataGeneration/parameterGenerator.ts index bcf7ce34d..3d4039148 100644 --- a/src/metadataGeneration/parameterGenerator.ts +++ b/src/metadataGeneration/parameterGenerator.ts @@ -178,11 +178,11 @@ export class ParameterGenerator { } private supportBodyMethod(method: string) { - return ['post', 'put', 'patch'].some(m => m === method.toLowerCase()); + return ['post', 'put', 'patch', 'delete'].some(m => m === method.toLowerCase()); } private supportParameterDecorator(decoratorName: string) { - return ['header', 'query', 'parem', 'body', 'bodyprop', 'request'].some(d => d === decoratorName.toLocaleLowerCase()); + return ['header', 'query', 'path', 'body', 'bodyprop', 'request'].some(d => d === decoratorName.toLocaleLowerCase()); } private supportPathDataType(parameterType: Tsoa.Type) {