Skip to content

Commit

Permalink
Merge pull request #424 from WoH/parem
Browse files Browse the repository at this point in the history
ParameterGenerator: Support DELETE body, path decorator
  • Loading branch information
dgreene1 authored Aug 23, 2019
2 parents 3bd067b + f2ecf4d commit 0067d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metadataGeneration/parameterGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0067d08

Please sign in to comment.