@@ -99,7 +99,7 @@ internal OpenApiInfo GetOpenApiInfo()
99
99
/// the object to support filtering each
100
100
/// description instance into its appropriate document.
101
101
/// </remarks>
102
- private async Task < OpenApiPaths > GetOpenApiPathsAsync ( HashSet < OpenApiTag > capturedTags , CancellationToken cancellationToken = default )
102
+ private async Task < OpenApiPaths > GetOpenApiPathsAsync ( HashSet < OpenApiTag > capturedTags , CancellationToken cancellationToken )
103
103
{
104
104
var descriptionsByPath = apiDescriptionGroupCollectionProvider . ApiDescriptionGroups . Items
105
105
. SelectMany ( group => group . Items )
@@ -114,7 +114,7 @@ private async Task<OpenApiPaths> GetOpenApiPathsAsync(HashSet<OpenApiTag> captur
114
114
return paths ;
115
115
}
116
116
117
- private async Task < Dictionary < OperationType , OpenApiOperation > > GetOperationsAsync ( IGrouping < string ? , ApiDescription > descriptions , HashSet < OpenApiTag > capturedTags , CancellationToken cancellationToken = default )
117
+ private async Task < Dictionary < OperationType , OpenApiOperation > > GetOperationsAsync ( IGrouping < string ? , ApiDescription > descriptions , HashSet < OpenApiTag > capturedTags , CancellationToken cancellationToken )
118
118
{
119
119
var operations = new Dictionary < OperationType , OpenApiOperation > ( ) ;
120
120
foreach ( var description in descriptions )
@@ -132,7 +132,7 @@ private async Task<Dictionary<OperationType, OpenApiOperation>> GetOperationsAsy
132
132
return operations ;
133
133
}
134
134
135
- private async Task < OpenApiOperation > GetOperationAsync ( ApiDescription description , HashSet < OpenApiTag > capturedTags , CancellationToken cancellationToken = default )
135
+ private async Task < OpenApiOperation > GetOperationAsync ( ApiDescription description , HashSet < OpenApiTag > capturedTags , CancellationToken cancellationToken )
136
136
{
137
137
var tags = GetTags ( description ) ;
138
138
if ( tags != null )
@@ -177,7 +177,7 @@ private async Task<OpenApiOperation> GetOperationAsync(ApiDescription descriptio
177
177
return [ new OpenApiTag { Name = description . ActionDescriptor . RouteValues [ "controller" ] } ] ;
178
178
}
179
179
180
- private async Task < OpenApiResponses > GetResponsesAsync ( ApiDescription description , CancellationToken cancellationToken = default )
180
+ private async Task < OpenApiResponses > GetResponsesAsync ( ApiDescription description , CancellationToken cancellationToken )
181
181
{
182
182
// OpenAPI requires that each operation have a response, usually a successful one.
183
183
// if there are no response types defined, we assume a successful 200 OK response
@@ -205,7 +205,7 @@ private async Task<OpenApiResponses> GetResponsesAsync(ApiDescription descriptio
205
205
return responses ;
206
206
}
207
207
208
- private async Task < OpenApiResponse > GetResponseAsync ( ApiDescription apiDescription , int statusCode , ApiResponseType apiResponseType , CancellationToken cancellationToken = default )
208
+ private async Task < OpenApiResponse > GetResponseAsync ( ApiDescription apiDescription , int statusCode , ApiResponseType apiResponseType , CancellationToken cancellationToken )
209
209
{
210
210
var description = ReasonPhrases . GetReasonPhrase ( statusCode ) ;
211
211
var response = new OpenApiResponse
@@ -240,7 +240,7 @@ private async Task<OpenApiResponse> GetResponseAsync(ApiDescription apiDescripti
240
240
return response ;
241
241
}
242
242
243
- private async Task < List < OpenApiParameter > ? > GetParametersAsync ( ApiDescription description , CancellationToken cancellationToken = default )
243
+ private async Task < List < OpenApiParameter > ? > GetParametersAsync ( ApiDescription description , CancellationToken cancellationToken )
244
244
{
245
245
List < OpenApiParameter > ? parameters = null ;
246
246
foreach ( var parameter in description . ParameterDescriptions )
@@ -273,7 +273,7 @@ private async Task<OpenApiResponse> GetResponseAsync(ApiDescription apiDescripti
273
273
return parameters ;
274
274
}
275
275
276
- private async Task < OpenApiRequestBody ? > GetRequestBodyAsync ( ApiDescription description , CancellationToken cancellationToken = default )
276
+ private async Task < OpenApiRequestBody ? > GetRequestBodyAsync ( ApiDescription description , CancellationToken cancellationToken )
277
277
{
278
278
// Only one parameter can be bound from the body in each request.
279
279
if ( description . TryGetBodyParameter ( out var bodyParameter ) )
@@ -290,7 +290,7 @@ private async Task<OpenApiResponse> GetResponseAsync(ApiDescription apiDescripti
290
290
return null ;
291
291
}
292
292
293
- private async Task < OpenApiRequestBody > GetFormRequestBody ( IList < ApiRequestFormat > supportedRequestFormats , IEnumerable < ApiParameterDescription > formParameters , CancellationToken cancellationToken = default )
293
+ private async Task < OpenApiRequestBody > GetFormRequestBody ( IList < ApiRequestFormat > supportedRequestFormats , IEnumerable < ApiParameterDescription > formParameters , CancellationToken cancellationToken )
294
294
{
295
295
if ( supportedRequestFormats . Count == 0 )
296
296
{
@@ -415,7 +415,7 @@ private async Task<OpenApiRequestBody> GetFormRequestBody(IList<ApiRequestFormat
415
415
return requestBody ;
416
416
}
417
417
418
- private async Task < OpenApiRequestBody > GetJsonRequestBody ( IList < ApiRequestFormat > supportedRequestFormats , ApiParameterDescription bodyParameter , CancellationToken cancellationToken = default )
418
+ private async Task < OpenApiRequestBody > GetJsonRequestBody ( IList < ApiRequestFormat > supportedRequestFormats , ApiParameterDescription bodyParameter , CancellationToken cancellationToken )
419
419
{
420
420
if ( supportedRequestFormats . Count == 0 )
421
421
{
0 commit comments