7 writes to Name
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (3)
117Name = routeParameter.Value.JsonPath, 139Name = "Input", 159Name = queryDescription.Key,
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (2)
290Name = routeParameter.Key, 661Name = GetName(containerName, bindingContext),
EndpointMetadataApiDescriptionProvider.cs (2)
145Name = acceptsRequestType is not null ? acceptsRequestType.Name : typeof(void).Name, 190Name = name,
106 references to Name
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
66Name = parameter.Name,
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
254if (routeParameters.TryGetValue(parameter.Name, out var routeInfo)) 257routeParameters.Remove(parameter.Name);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (85)
DefaultApiDescriptionProviderTest.cs (66)
187Assert.Equal("id", parameter.Name); 233Assert.Equal("id", parameter.Name); 298Assert.Equal("id", parameter.Name); 437var id1 = Assert.Single(description.ParameterDescriptions, p => p.Name == "id1"); 441var id2 = Assert.Single(description.ParameterDescriptions, p => p.Name == "id2"); 462Assert.Single(description.ParameterDescriptions, p => p.Name == "id1"); 463Assert.Single(description.ParameterDescriptions, p => p.Name == "id2"); 464Assert.Single(description.ParameterDescriptions, p => p.Name == "id3"); 465Assert.Single(description.ParameterDescriptions, p => p.Name == "id4"); 466Assert.Single(description.ParameterDescriptions, p => p.Name == "id5"); 1326var parameter = Assert.Single(parameters, p => p.Name == "ProductId"); 1330parameter = Assert.Single(parameters, p => p.Name == "Name"); 1334parameter = Assert.Single(parameters, p => p.Name == "Description"); 1351Assert.Equal("name", parameter.Name); 1371Assert.Equal("id", parameter.Name); 1388Assert.Equal("id", parameter.Name); 1405Assert.Equal("product", parameter.Name); 1424var parameter = Assert.Single(parameters, p => p.Name == "ProductId"); 1428parameter = Assert.Single(parameters, p => p.Name == "Name"); 1432parameter = Assert.Single(parameters, p => p.Name == "Description"); 1475Assert.Equal("id", parameter.Name); 1507Assert.Equal("product", parameter.Name); 1526var parameter = Assert.Single(parameters, p => p.Name == "ProductId"); 1530parameter = Assert.Single(parameters, p => p.Name == "Name"); 1534parameter = Assert.Single(parameters, p => p.Name == "Description"); 1553var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Id"); 1557var product = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product"); 1561var userId = Assert.Single(description.ParameterDescriptions, p => p.Name == "UserId"); 1565var comments = Assert.Single(description.ParameterDescriptions, p => p.Name == "Comments"); 1584var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Name"); 1603var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "id"); 1622var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "id"); 1641var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "employee"); 1660var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "employee"); 1679var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "employee"); 1698var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "employee"); 1717var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "managerid"); 1721var product = Assert.Single(description.ParameterDescriptions, p => p.Name == "name"); 1741var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Id"); 1745var product = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product"); 1749var userId = Assert.Single(description.ParameterDescriptions, p => p.Name == "UserId"); 1753var comments = Assert.Single(description.ParameterDescriptions, p => p.Name == "Comments"); 1772var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Id"); 1776var quantity = Assert.Single(description.ParameterDescriptions, p => p.Name == "Quantity"); 1780var productId = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product.Id"); 1784var price = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product.Price"); 1804var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Id"); 1808var quantity = Assert.Single(description.ParameterDescriptions, p => p.Name == "Quantity"); 1812var productId = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product.Id"); 1816var productPrice = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product.Price"); 1839var id = Assert.Single(description.ParameterDescriptions, p => p.Name == $"{parentName}.Child.Id"); 1843var name = Assert.Single(description.ParameterDescriptions, p => p.Name == $"{parentName}.Child.Name"); 1870var id = Assert.Single(description.ParameterDescriptions, p => p.Name == $"{groupName}.{parentName}.Child.Id"); 1874var name = Assert.Single(description.ParameterDescriptions, p => p.Name == $"{groupName}.{parentName}.Child.Name"); 1895Assert.Equal("C.C.C.C", c.Name); 1913Assert.Equal("Products", products.Name); 1932Assert.Equal("Items", items.Name); 1952var id = Assert.Single(parameters, p => p.Name == "Id"); 1956var name = Assert.Single(parameters, p => p.Name == "Name"); 1974var name = Assert.Single(description.ParameterDescriptions, p => p.Name == "Name"); 1978var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Id"); 1997var name = Assert.Single(description.ParameterDescriptions, p => p.Name == "name"); 2001var id = Assert.Single(description.ParameterDescriptions, p => p.Name == "Id"); 2005var product = Assert.Single(description.ParameterDescriptions, p => p.Name == "Product"); 2009var userId = Assert.Single(description.ParameterDescriptions, p => p.Name == "UserId"); 2013var comments = Assert.Single(description.ParameterDescriptions, p => p.Name == "Comments");
EndpointMetadataApiDescriptionProviderTest.cs (19)
598Assert.Equal(expectedName, param.Name); 624Assert.Equal("foo", fooParam.Name); 631Assert.Equal("bar", barParam.Name); 638Assert.Equal("fromBody", fromBodyParam.Name); 655Assert.Equal(capturedName, param.Name); 662Assert.Equal("Bar", param.Name); 669Assert.Equal("FromBody", param.Name); 1050Assert.Equal("inferredJsonClass", bodyParameterDescription.Name); 1109Assert.Equal("inferredJsonClass", bodyParameterDescription.Name); 1141Assert.Equal("inferredJsonClass", bodyParameterDescription.Name); 1173Assert.Equal("inferredJsonClass", bodyParameterDescription.Name); 1201Assert.Equal("formFile", bodyParameterDescription.Name); 1230Assert.Equal("inferredFormFile", bodyParameterDescription.Name); 1259Assert.Equal("file", bodyParameterDescription.Name); 1316Assert.Equal(expectedName, param.Name); 1347Assert.Equal(expectedName, bodyParameterDescription.Name); 1384Assert.Equal("fromQuery", parameter.Name); 1389Assert.Equal("name", parameter.Name); 1512Assert.Equal(expectedName, parameter.Name);
Microsoft.AspNetCore.OpenApi (13)
Services\OpenApiDocumentService.cs (13)
407Name = parameter.Name, 433else if (parameter.Source == BindingSource.Header && _disallowedHeaderParameters.Contains(parameter.Name)) 529schema.Required.Add(description.Name); 538[description.Name] = parameterSchema 544schema.Properties[description.Name] = parameterSchema; 553.SingleOrDefault(parameter => parameter.Name == description.Name)? 567schema.Required.Add(description.Name); 574[description.Name] = parameterSchema 589schema.Required.Add(description.Name); 591schema.Properties[description.Name] = parameterSchema; 603propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 611schema.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)
107schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.Name); 180schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.Name);
Microsoft.AspNetCore.OpenApi.Tests (3)
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
281schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.Name);
Transformers\SchemaTransformerTests.cs (2)
48Assert.Equal("todo", context.ParameterDescription.Name); 216schema.Extensions["x-my-extension"] = new OpenApiString(context.ParameterDescription.Name);