@@ -193,8 +193,8 @@ private IOperation BuildOperation(DescriptionContext context, OperationInfo<Verb
193193 template = BuildTemplate ( context , operation , result ) ;
194194 bool isRdfRequired ;
195195 bool requiresRdf = false ;
196- IEnumerable < ParameterInfo > arguments = operation . Arguments . Where ( parameter => parameter . Source is FromBodyAttribute ) . Select ( parameter => parameter . Parameter ) ;
197- IEnumerable < ParameterInfo > results = operation . Results . Where ( output => output . Target is ToBodyAttribute ) . Select ( parameter => parameter . Parameter ) ;
196+ var arguments = operation . Arguments . Where ( parameter => parameter . Source is FromBodyAttribute ) . Select ( parameter => parameter . Parameter ) ;
197+ var results = operation . Results . Where ( output => output . Target is ToBodyAttribute ) . Select ( parameter => parameter . Parameter ) ;
198198 if ( operation . IsWriteControllerOperation ( ) )
199199 {
200200 arguments = ( operation . UnderlyingMethod . GetParameters ( ) . Length > 1 ? new [ ] { operation . UnderlyingMethod . GetParameters ( ) [ 1 ] } : new ParameterInfo [ 0 ] ) ;
@@ -231,7 +231,7 @@ private IIriTemplate BuildTemplate(DescriptionContext context, OperationInfo<Ver
231231
232232 IIriTemplate template = null ;
233233 var templateUri = operationDocumentation . Id . Uri . AddFragment ( "template" ) ;
234- var templateMappings = from mapping in parameterMapping where ! ( mapping . Source is FromBodyAttribute ) select BuildTemplateMapping ( context , templateUri , mapping ) ;
234+ var templateMappings = from mapping in parameterMapping where ! ( mapping . Source is FromBodyAttribute ) select BuildTemplateMapping ( context , templateUri , operation , mapping ) ;
235235 foreach ( var templateMapping in templateMappings )
236236 {
237237 if ( template == null )
@@ -246,11 +246,12 @@ private IIriTemplate BuildTemplate(DescriptionContext context, OperationInfo<Ver
246246 return template ;
247247 }
248248
249- private IIriTemplateMapping BuildTemplateMapping ( DescriptionContext context , Uri templateUri , ArgumentInfo mapping )
249+ private IIriTemplateMapping BuildTemplateMapping ( DescriptionContext context , Uri templateUri , OperationInfo < Verb > operation , ArgumentInfo mapping )
250250 {
251251 IIriTemplateMapping templateMapping = context . ApiDocumentation . Context . Create < IIriTemplateMapping > ( templateUri . AddFragment ( mapping . VariableName ) ) ;
252252 templateMapping . Variable = mapping . VariableName ;
253253 templateMapping . Required = mapping . Parameter . ParameterType . IsValueType ;
254+ templateMapping . Description = _xmlDocProvider . GetDescription ( operation . UnderlyingMethod , mapping . Parameter ) ;
254255 var linqBehaviors = mapping . Parameter . GetCustomAttributes < LinqServerBehaviorAttribute > ( true ) ;
255256 if ( linqBehaviors . Any ( ) )
256257 {
0 commit comments