6 writes to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (1)
658Type = GetModelType(bindingContext.ModelMetadata),
EndpointMetadataApiDescriptionProvider.cs (2)
149Type = acceptsRequestType ?? typeof(void), 197Type = parameter.ParameterType,
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchOperationsArrayProvider.cs (1)
46parameterDescription.Type = typeof(Operation[]);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
JsonPatchOperationsArrayProviderTests.cs (2)
22Type = typeof(JsonPatchDocument) 27Type = typeof(string),
98 references to Type
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
68Type = parameter.Type?.FullName,
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
136var requestFormats = GetSupportedFormats(contentTypes, parameter.Type);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (84)
DefaultApiDescriptionProviderTest.cs (51)
1326Assert.Equal(typeof(int), parameter.Type); 1330Assert.Equal(typeof(string), parameter.Type); 1334Assert.Equal(typeof(string), parameter.Type); 1351Assert.Equal(typeof(string), parameter.Type); 1424Assert.Equal(typeof(int), parameter.Type); 1428Assert.Equal(typeof(string), parameter.Type); 1432Assert.Equal(typeof(string), parameter.Type); 1526Assert.Equal(typeof(int), parameter.Type); 1530Assert.Equal(typeof(string), parameter.Type); 1534Assert.Equal(typeof(string), parameter.Type); 1553Assert.Equal(typeof(int), id.Type); 1557Assert.Equal(typeof(Product), product.Type); 1561Assert.Equal(typeof(string), userId.Type); 1565Assert.Equal(typeof(string), comments.Type); 1584Assert.Equal(typeof(string), id.Type); 1603Assert.Equal(typeof(Guid), id.Type); 1622Assert.Equal(typeof(Guid?), id.Type); 1641Assert.Equal(typeof(string), id.Type); 1660Assert.Equal(typeof(string), id.Type); 1679Assert.Equal(typeof(string), id.Type); 1698Assert.Equal(typeof(string), id.Type); 1717Assert.Equal(typeof(string), id.Type); 1721Assert.Equal(typeof(string), product.Type); 1741Assert.Equal(typeof(int), id.Type); 1745Assert.Equal(typeof(Product), product.Type); 1749Assert.Equal(typeof(string), userId.Type); 1753Assert.Equal(typeof(string), comments.Type); 1772Assert.Equal(typeof(int), id.Type); 1776Assert.Equal(typeof(int), quantity.Type); 1780Assert.Equal(typeof(int), productId.Type); 1784Assert.Equal(typeof(decimal), price.Type); 1804Assert.Equal(typeof(int), id.Type); 1808Assert.Equal(typeof(int), quantity.Type); 1812Assert.Equal(typeof(int), productId.Type); 1816Assert.Equal(typeof(decimal), productPrice.Type); 1839Assert.Equal(typeof(int), id.Type); 1843Assert.Equal(typeof(string), name.Type); 1870Assert.Equal(typeof(int), id.Type); 1874Assert.Equal(typeof(string), name.Type); 1894Assert.Equal(typeof(Cycle1), c.Type); 1912Assert.Equal(typeof(Product[]), products.Type); 1931Assert.Equal(typeof(Child[]), items.Type); 1952Assert.Equal(typeof(int), id.Type); 1956Assert.Equal(typeof(string), name.Type); 1974Assert.Equal(typeof(string), name.Type); 1978Assert.Equal(typeof(int), id.Type); 1997Assert.Equal(typeof(string), name.Type); 2001Assert.Equal(typeof(int), id.Type); 2005Assert.Equal(typeof(Product), product.Type); 2009Assert.Equal(typeof(string), userId.Type); 2013Assert.Equal(typeof(string), comments.Type);
EndpointMetadataApiDescriptionProviderTest.cs (33)
112Assert.Equal("InferredJsonClass", apiParameterDescription.Type.Name); 127Assert.Equal("InferredJsonClass", apiParameterDescription.Type.Name); 264Assert.Equal(typeof(int), param.Type); 279Assert.Equal(typeof(TryParseStringRecord), param.Type); 293Assert.Equal(typeof(int), param.Type); 307Assert.Equal(expectedTYpe, param.Type); 328Assert.Equal(expectedTYpe, param.Type); 349Assert.Equal(typeof(int?), param.Type); 363Assert.Equal(typeof(TryParseStringRecordStruct), param.Type); 377Assert.Equal(typeof(T), param.Type); 399Assert.Equal(typeof(T), param.Type); 415Assert.Equal(typeof(int), param.Type); 441Assert.Equal(expectedType, param.Type); 467Assert.Equal(typeof(int), fooParam.Type); 474Assert.Equal(typeof(int), barParam.Type); 481Assert.Equal(typeof(InferredJsonClass), fromBodyParam.Type); 512Assert.Equal(typeof(InferredJsonClass), param.Type); 578Assert.Equal(typeof(int), fooParam.Type); 584Assert.Equal(typeof(int?), barParam.Type); 623Assert.Equal(typeof(string), fooParam.Type); 629Assert.Equal(typeof(int), barParam.Type); 642Assert.Equal(typeof(string), nameParam.Type); 881Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 940Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 972Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1004Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1032Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1061Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1090Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1127Assert.Equal(typeof(IFormFile), fromFileParam0.Type); 1133Assert.Equal(typeof(IFormFile), fromFileParam1.Type); 1145Assert.Equal(expectedType, param.Type); 1178Assert.Equal(typeof(IFormFileCollection), bodyParameterDescription.Type);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchOperationsArrayProvider.cs (1)
44if (typeof(IJsonPatchDocument).GetTypeInfo().IsAssignableFrom(parameterDescription.Type))
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
JsonPatchOperationsArrayProviderTests.cs (2)
45Assert.Equal(typeof(Operation[]), description.Type); 50Assert.Equal(typeof(string), description.Type);
Microsoft.AspNetCore.OpenApi (9)
Services\OpenApiDocumentService.cs (9)
268Schema = await _componentService.GetOrCreateSchemaAsync(parameter.Type, parameter, cancellationToken), 328var parameterSchema = await _componentService.GetOrCreateSchemaAsync(description.Type, null, cancellationToken); 331if (description.Type == typeof(IFormFile) || description.Type == typeof(IFormFileCollection)) 391propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(description.Type, null, cancellationToken); 399schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(description.Type, null, cancellationToken); 422if (bodyParameter.Type == typeof(Stream) || bodyParameter.Type == typeof(PipeReader)) 445requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(bodyParameter.Type, bodyParameter, cancellationToken) };