From 6e5536d628e7373f1a80de98a22a912301b6a481 Mon Sep 17 00:00:00 2001 From: Jeremy Flores Date: Mon, 22 Jul 2019 12:33:59 -0700 Subject: [PATCH] add ContextRequestProperty to acceptable decorators --- src/metadata/parameterGenerator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/metadata/parameterGenerator.ts b/src/metadata/parameterGenerator.ts index 471c5e4..751a11c 100644 --- a/src/metadata/parameterGenerator.ts +++ b/src/metadata/parameterGenerator.ts @@ -37,6 +37,7 @@ export class ParameterGenerator { case 'ContextNext': case 'ContextLanguage': case 'ContextAccept': + case 'ContextRequestProperty': return this.getContextParameter(this.parameter); default: return this.getBodyParameter(this.parameter); @@ -255,7 +256,7 @@ export class ParameterGenerator { return ['HeaderParam', 'QueryParam', 'Param', 'FileParam', 'PathParam', 'FilesParam', 'FormParam', 'CookieParam', 'Context', 'ContextRequest', 'ContextResponse', 'ContextNext', - 'ContextLanguage', 'ContextAccept'].some(d => d === decoratorName); + 'ContextLanguage', 'ContextAccept', 'ContextRequestProperty'].some(d => d === decoratorName); } private supportPathDataType(parameterType: Type) {