156 references to ParameterDescriptions
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
62
foreach (var parameter in description.
ParameterDescriptions
)
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (3)
115
apiDescription.
ParameterDescriptions
.Add(new ApiParameterDescription
137
apiDescription.
ParameterDescriptions
.Add(new ApiParameterDescription
157
apiDescription.
ParameterDescriptions
.Add(new ApiParameterDescription
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
DefaultApiDescriptionProvider.cs (3)
115
apiDescription.
ParameterDescriptions
.Add(parameter);
126
if (apiDescription.
ParameterDescriptions
.Count > 0)
133
foreach (var parameter in apiDescription.
ParameterDescriptions
)
EndpointMetadataApiDescriptionProvider.cs (2)
124
apiDescription.
ParameterDescriptions
.Add(parameterDescription);
151
apiDescription.
ParameterDescriptions
.Add(parameterDescription);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (140)
DefaultApiDescriptionProviderTest.cs (81)
184
var parameter = Assert.Single(description.
ParameterDescriptions
);
230
var parameter = Assert.Single(description.
ParameterDescriptions
);
267
Assert.Empty(description.
ParameterDescriptions
);
296
var parameter = Assert.Single(description.
ParameterDescriptions
);
312
var parameterDescription = Assert.Single(description.
ParameterDescriptions
);
338
var parameters = description.
ParameterDescriptions
;
369
var parameters = description.
ParameterDescriptions
;
392
var parameter = Assert.Single(description.
ParameterDescriptions
);
437
var id1 = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id1");
441
var id2 = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id2");
462
Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id1");
463
Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id2");
464
Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id3");
465
Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id4");
466
Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id5");
1323
var parameters = description.
ParameterDescriptions
;
1350
var parameter = Assert.Single(description.
ParameterDescriptions
);
1370
var parameter = Assert.Single(description.
ParameterDescriptions
);
1387
var parameter = Assert.Single(description.
ParameterDescriptions
);
1404
var parameter = Assert.Single(description.
ParameterDescriptions
);
1421
var parameters = description.
ParameterDescriptions
;
1453
var parameters = description.
ParameterDescriptions
;
1474
var parameter = Assert.Single(description.
ParameterDescriptions
);
1491
Assert.Empty(description.
ParameterDescriptions
);
1506
var parameter = Assert.Single(description.
ParameterDescriptions
);
1523
var parameters = description.
ParameterDescriptions
;
1551
Assert.Equal(4, description.
ParameterDescriptions
.Count);
1553
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Id");
1557
var product = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product");
1561
var userId = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "UserId");
1565
var comments = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Comments");
1582
Assert.Single(description.
ParameterDescriptions
);
1584
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Name");
1601
Assert.Single(description.
ParameterDescriptions
);
1603
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id");
1620
Assert.Single(description.
ParameterDescriptions
);
1622
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "id");
1639
Assert.Single(description.
ParameterDescriptions
);
1641
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "employee");
1658
Assert.Single(description.
ParameterDescriptions
);
1660
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "employee");
1677
Assert.Single(description.
ParameterDescriptions
);
1679
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "employee");
1696
Assert.Single(description.
ParameterDescriptions
);
1698
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "employee");
1715
Assert.Equal(2, description.
ParameterDescriptions
.Count);
1717
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "managerid");
1721
var product = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "name");
1739
Assert.Equal(4, description.
ParameterDescriptions
.Count);
1741
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Id");
1745
var product = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product");
1749
var userId = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "UserId");
1753
var comments = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Comments");
1770
Assert.Equal(4, description.
ParameterDescriptions
.Count);
1772
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Id");
1776
var quantity = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Quantity");
1780
var productId = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product.Id");
1784
var price = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product.Price");
1802
Assert.Equal(4, description.
ParameterDescriptions
.Count);
1804
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Id");
1808
var quantity = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Quantity");
1812
var productId = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product.Id");
1816
var productPrice = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product.Price");
1833
Assert.Equal(4, description.
ParameterDescriptions
.Count);
1839
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == $"{parentName}.Child.Id");
1843
var name = Assert.Single(description.
ParameterDescriptions
, p => p.Name == $"{parentName}.Child.Name");
1861
Assert.Equal(8, description.
ParameterDescriptions
.Count);
1870
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == $"{groupName}.{parentName}.Child.Id");
1874
var name = Assert.Single(description.
ParameterDescriptions
, p => p.Name == $"{groupName}.{parentName}.Child.Name");
1893
var c = Assert.Single(description.
ParameterDescriptions
);
1911
var products = Assert.Single(description.
ParameterDescriptions
);
1930
var items = Assert.Single(description.
ParameterDescriptions
);
1949
var parameters = description.
ParameterDescriptions
;
1974
var name = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Name");
1978
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Id");
1995
Assert.Equal(5, description.
ParameterDescriptions
.Count);
1997
var name = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "name");
2001
var id = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Id");
2005
var product = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Product");
2009
var userId = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "UserId");
2013
var comments = Assert.Single(description.
ParameterDescriptions
, p => p.Name == "Comments");
EndpointMetadataApiDescriptionProviderTest.cs (59)
112
var apiParameterDescription = apiDescription.
ParameterDescriptions
[0];
127
var apiParameterDescription = apiDescription.
ParameterDescriptions
[0];
421
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
436
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
450
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
464
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
485
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
506
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
520
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
534
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
556
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
571
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
581
Assert.Empty(GetApiDescription((IInferredServiceInterface foo) => { }).
ParameterDescriptions
);
582
Assert.Empty(GetApiDescription(([FromServices] InferredServiceClass foo) => { }).
ParameterDescriptions
);
583
Assert.Empty(GetApiDescription(([FromKeyedServices("foo")] InferredServiceClass foo) => { }).
ParameterDescriptions
);
584
Assert.Empty(GetApiDescription((HttpContext context) => { }).
ParameterDescriptions
);
585
Assert.Empty(GetApiDescription((HttpRequest request) => { }).
ParameterDescriptions
);
586
Assert.Empty(GetApiDescription((HttpResponse response) => { }).
ParameterDescriptions
);
587
Assert.Empty(GetApiDescription((ClaimsPrincipal user) => { }).
ParameterDescriptions
);
588
Assert.Empty(GetApiDescription((CancellationToken token) => { }).
ParameterDescriptions
);
589
Assert.Empty(GetApiDescription((BindAsyncRecord context) => { }).
ParameterDescriptions
);
597
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
613
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
621
Assert.Equal(3, apiDescription.
ParameterDescriptions
.Count);
623
var fooParam = apiDescription.
ParameterDescriptions
[0];
630
var barParam = apiDescription.
ParameterDescriptions
[1];
637
var fromBodyParam = apiDescription.
ParameterDescriptions
[2];
652
apiDescription.
ParameterDescriptions
,
701
Assert.Equal(4, apiDescription.
ParameterDescriptions
.Count);
703
Assert.Collection(apiDescription.
ParameterDescriptions
,
714
Assert.Equal(4, apiDescription.
ParameterDescriptions
.Count);
716
Assert.NotNull(apiDescription.
ParameterDescriptions
[0].ModelMetadata.ContainerType);
717
Assert.Equal(typeof(AsParametersWithRequiredMembers), apiDescription.
ParameterDescriptions
[0].ModelMetadata.ContainerType);
731
Assert.Equal(2, apiDescription.
ParameterDescriptions
.Count);
733
Assert.Collection(apiDescription.
ParameterDescriptions
,
743
Assert.Equal(2, apiDescription.
ParameterDescriptions
.Count);
745
var fooParam = apiDescription.
ParameterDescriptions
[0];
751
var barParam = apiDescription.
ParameterDescriptions
[1];
788
Assert.Equal(2, apiDescription.
ParameterDescriptions
.Count);
790
var fooParam = apiDescription.
ParameterDescriptions
[0];
796
var barParam = apiDescription.
ParameterDescriptions
[1];
807
Assert.Single(apiDescription.
ParameterDescriptions
);
809
var nameParam = apiDescription.
ParameterDescriptions
[0];
1047
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1106
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1138
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1170
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1198
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1227
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1256
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1291
Assert.Single(apiDescription0.
ParameterDescriptions
);
1292
Assert.Single(apiDescription1.
ParameterDescriptions
);
1294
var fromFileParam0 = apiDescription0.
ParameterDescriptions
[0];
1300
var fromFileParam1 = apiDescription1.
ParameterDescriptions
[0];
1312
var param = Assert.Single(apiDescription.
ParameterDescriptions
);
1344
var parameterDescriptions = context.Results.SelectMany(r => r.
ParameterDescriptions
);
1381
Assert.Collection(apiDescription.
ParameterDescriptions
,
1417
var parameter = Assert.Single(apiDescription.
ParameterDescriptions
);
1511
var parameter = Assert.Single(apiDescription.
ParameterDescriptions
);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchOperationsArrayProvider.cs (1)
42
foreach (var parameterDescription in result.
ParameterDescriptions
)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
JsonPatchOperationsArrayProviderTests.cs (3)
31
apiDescription.
ParameterDescriptions
.Add(jsonPatchParameterDescription);
32
apiDescription.
ParameterDescriptions
.Add(stringParameterDescription);
42
Assert.Collection(apiDescription.
ParameterDescriptions
,
Microsoft.AspNetCore.OpenApi (3)
Extensions\ApiDescriptionExtensions.cs (2)
95
formParameters = apiDescription.
ParameterDescriptions
.Where(parameter => parameter.Source == BindingSource.Form || parameter.Source == BindingSource.FormFile);
108
var bodyParameters = apiDescription.
ParameterDescriptions
.Where(parameter => parameter.Source == BindingSource.Body);
Services\OpenApiDocumentService.cs (1)
398
foreach (var parameter in description.
ParameterDescriptions
)