Skip to content

Commit 6e5536d

Browse files
committed
add ContextRequestProperty to acceptable decorators
1 parent 67663ea commit 6e5536d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/metadata/parameterGenerator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class ParameterGenerator {
3737
case 'ContextNext':
3838
case 'ContextLanguage':
3939
case 'ContextAccept':
40+
case 'ContextRequestProperty':
4041
return this.getContextParameter(this.parameter);
4142
default:
4243
return this.getBodyParameter(this.parameter);
@@ -255,7 +256,7 @@ export class ParameterGenerator {
255256
return ['HeaderParam', 'QueryParam', 'Param', 'FileParam',
256257
'PathParam', 'FilesParam', 'FormParam', 'CookieParam',
257258
'Context', 'ContextRequest', 'ContextResponse', 'ContextNext',
258-
'ContextLanguage', 'ContextAccept'].some(d => d === decoratorName);
259+
'ContextLanguage', 'ContextAccept', 'ContextRequestProperty'].some(d => d === decoratorName);
259260
}
260261

261262
private supportPathDataType(parameterType: Type) {

0 commit comments

Comments
 (0)