7 writes to Name
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (3)
117
Name
= routeParameter.Value.JsonPath,
139
Name
= "Input",
159
Name
= queryDescription.Key,
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (2)
290
Name
= routeParameter.Key,
661
Name
= GetName(containerName, bindingContext),
EndpointMetadataApiDescriptionProvider.cs (2)
145
Name
= acceptsRequestType is not null ? acceptsRequestType.Name : typeof(void).Name,
190
Name
= name,
106 references to Name
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
66
Name = parameter.
Name
,
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
254
if (routeParameters.TryGetValue(parameter.
Name
, out var routeInfo))
257
routeParameters.Remove(parameter.
Name
);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (85)
DefaultApiDescriptionProviderTest.cs (66)
187
Assert.Equal("id", parameter.
Name
);
233
Assert.Equal("id", parameter.
Name
);
298
Assert.Equal("id", parameter.
Name
);
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");
1326
var parameter = Assert.Single(parameters, p => p.
Name
== "ProductId");
1330
parameter = Assert.Single(parameters, p => p.
Name
== "Name");
1334
parameter = Assert.Single(parameters, p => p.
Name
== "Description");
1351
Assert.Equal("name", parameter.
Name
);
1371
Assert.Equal("id", parameter.
Name
);
1388
Assert.Equal("id", parameter.
Name
);
1405
Assert.Equal("product", parameter.
Name
);
1424
var parameter = Assert.Single(parameters, p => p.
Name
== "ProductId");
1428
parameter = Assert.Single(parameters, p => p.
Name
== "Name");
1432
parameter = Assert.Single(parameters, p => p.
Name
== "Description");
1475
Assert.Equal("id", parameter.
Name
);
1507
Assert.Equal("product", parameter.
Name
);
1526
var parameter = Assert.Single(parameters, p => p.
Name
== "ProductId");
1530
parameter = Assert.Single(parameters, p => p.
Name
== "Name");
1534
parameter = Assert.Single(parameters, p => p.
Name
== "Description");
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");
1584
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "Name");
1603
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "id");
1622
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "id");
1641
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "employee");
1660
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "employee");
1679
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "employee");
1698
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "employee");
1717
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "managerid");
1721
var product = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "name");
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");
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");
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");
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");
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");
1895
Assert.Equal("C.C.C.C", c.
Name
);
1913
Assert.Equal("Products", products.
Name
);
1932
Assert.Equal("Items", items.
Name
);
1952
var id = Assert.Single(parameters, p => p.
Name
== "Id");
1956
var name = Assert.Single(parameters, p => p.
Name
== "Name");
1974
var name = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "Name");
1978
var id = Assert.Single(description.ParameterDescriptions, p => p.
Name
== "Id");
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 (19)
598
Assert.Equal(expectedName, param.
Name
);
624
Assert.Equal("foo", fooParam.
Name
);
631
Assert.Equal("bar", barParam.
Name
);
638
Assert.Equal("fromBody", fromBodyParam.
Name
);
655
Assert.Equal(capturedName, param.
Name
);
662
Assert.Equal("Bar", param.
Name
);
669
Assert.Equal("FromBody", param.
Name
);
1050
Assert.Equal("inferredJsonClass", bodyParameterDescription.
Name
);
1109
Assert.Equal("inferredJsonClass", bodyParameterDescription.
Name
);
1141
Assert.Equal("inferredJsonClass", bodyParameterDescription.
Name
);
1173
Assert.Equal("inferredJsonClass", bodyParameterDescription.
Name
);
1201
Assert.Equal("formFile", bodyParameterDescription.
Name
);
1230
Assert.Equal("inferredFormFile", bodyParameterDescription.
Name
);
1259
Assert.Equal("file", bodyParameterDescription.
Name
);
1316
Assert.Equal(expectedName, param.
Name
);
1347
Assert.Equal(expectedName, bodyParameterDescription.
Name
);
1384
Assert.Equal("fromQuery", parameter.
Name
);
1389
Assert.Equal("name", parameter.
Name
);
1512
Assert.Equal(expectedName, parameter.
Name
);
Microsoft.AspNetCore.OpenApi (13)
Services\OpenApiDocumentService.cs (13)
407
Name = parameter.
Name
,
433
else if (parameter.Source == BindingSource.Header && _disallowedHeaderParameters.Contains(parameter.
Name
))
529
schema.Required.Add(description.
Name
);
538
[description.
Name
] = parameterSchema
544
schema.Properties[description.
Name
] = parameterSchema;
553
.SingleOrDefault(parameter => parameter.Name == description.
Name
)?
567
schema.Required.Add(description.
Name
);
574
[description.
Name
] = parameterSchema
589
schema.Required.Add(description.
Name
);
591
schema.Properties[description.
Name
] = parameterSchema;
603
propertySchema.Properties[description.
Name
] = await _componentService.GetOrCreateSchemaAsync(description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken);
611
schema.Properties[description.
Name
] = await _componentService.GetOrCreateSchemaAsync(description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken);
684
.SingleOrDefault(metadata => metadata.Name == parameter.
Name
);
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
TransformersBenchmark.cs (2)
107
schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.
Name
);
180
schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.
Name
);
Microsoft.AspNetCore.OpenApi.Tests (3)
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
281
schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.
Name
);
Transformers\SchemaTransformerTests.cs (2)
48
Assert.Equal("todo", context.ParameterDescription.
Name
);
216
schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.
Name
);