6 writes to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (1)
675Type = GetModelType(bindingContext.ModelMetadata),
EndpointMetadataApiDescriptionProvider.cs (2)
148Type = acceptsRequestType ?? typeof(void), 194Type = parameter.ParameterInfo.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),
103 references to Type
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
68Type = parameter.Type?.FullName,
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
139var requestFormats = GetSupportedFormats(contentTypes, parameter.Type);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (84)
DefaultApiDescriptionProviderTest.cs (51)
1358Assert.Equal(typeof(int), parameter.Type); 1362Assert.Equal(typeof(string), parameter.Type); 1366Assert.Equal(typeof(string), parameter.Type); 1383Assert.Equal(typeof(string), parameter.Type); 1456Assert.Equal(typeof(int), parameter.Type); 1460Assert.Equal(typeof(string), parameter.Type); 1464Assert.Equal(typeof(string), parameter.Type); 1558Assert.Equal(typeof(int), parameter.Type); 1562Assert.Equal(typeof(string), parameter.Type); 1566Assert.Equal(typeof(string), parameter.Type); 1585Assert.Equal(typeof(int), id.Type); 1589Assert.Equal(typeof(Product), product.Type); 1593Assert.Equal(typeof(string), userId.Type); 1597Assert.Equal(typeof(string), comments.Type); 1616Assert.Equal(typeof(string), id.Type); 1635Assert.Equal(typeof(Guid), id.Type); 1654Assert.Equal(typeof(Guid?), id.Type); 1673Assert.Equal(typeof(string), id.Type); 1692Assert.Equal(typeof(string), id.Type); 1711Assert.Equal(typeof(string), id.Type); 1730Assert.Equal(typeof(string), id.Type); 1749Assert.Equal(typeof(string), id.Type); 1753Assert.Equal(typeof(string), product.Type); 1773Assert.Equal(typeof(int), id.Type); 1777Assert.Equal(typeof(Product), product.Type); 1781Assert.Equal(typeof(string), userId.Type); 1785Assert.Equal(typeof(string), comments.Type); 1804Assert.Equal(typeof(int), id.Type); 1808Assert.Equal(typeof(int), quantity.Type); 1812Assert.Equal(typeof(int), productId.Type); 1816Assert.Equal(typeof(decimal), price.Type); 1836Assert.Equal(typeof(int), id.Type); 1840Assert.Equal(typeof(int), quantity.Type); 1844Assert.Equal(typeof(int), productId.Type); 1848Assert.Equal(typeof(decimal), productPrice.Type); 1871Assert.Equal(typeof(int), id.Type); 1875Assert.Equal(typeof(string), name.Type); 1902Assert.Equal(typeof(int), id.Type); 1906Assert.Equal(typeof(string), name.Type); 1926Assert.Equal(typeof(Cycle1), c.Type); 1944Assert.Equal(typeof(Product[]), products.Type); 1963Assert.Equal(typeof(Child[]), items.Type); 1984Assert.Equal(typeof(int), id.Type); 1988Assert.Equal(typeof(string), name.Type); 2006Assert.Equal(typeof(string), name.Type); 2010Assert.Equal(typeof(int), id.Type); 2029Assert.Equal(typeof(string), name.Type); 2033Assert.Equal(typeof(int), id.Type); 2037Assert.Equal(typeof(Product), product.Type); 2041Assert.Equal(typeof(string), userId.Type); 2045Assert.Equal(typeof(string), comments.Type);
EndpointMetadataApiDescriptionProviderTest.cs (33)
113Assert.Equal("InferredJsonClass", apiParameterDescription.Type.Name); 128Assert.Equal("InferredJsonClass", apiParameterDescription.Type.Name); 422Assert.Equal(typeof(int), param.Type); 437Assert.Equal(typeof(TryParseStringRecord), param.Type); 451Assert.Equal(typeof(int), param.Type); 465Assert.Equal(expectedTYpe, param.Type); 486Assert.Equal(expectedTYpe, param.Type); 507Assert.Equal(typeof(int?), param.Type); 521Assert.Equal(typeof(TryParseStringRecordStruct), param.Type); 535Assert.Equal(typeof(T), param.Type); 557Assert.Equal(typeof(T), param.Type); 573Assert.Equal(typeof(int), param.Type); 599Assert.Equal(expectedType, param.Type); 625Assert.Equal(typeof(int), fooParam.Type); 632Assert.Equal(typeof(int), barParam.Type); 639Assert.Equal(typeof(InferredJsonClass), fromBodyParam.Type); 670Assert.Equal(typeof(InferredJsonClass), param.Type); 746Assert.Equal(typeof(int), fooParam.Type); 752Assert.Equal(typeof(int?), barParam.Type); 791Assert.Equal(typeof(string), fooParam.Type); 797Assert.Equal(typeof(int), barParam.Type); 810Assert.Equal(typeof(string), nameParam.Type); 1049Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1108Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1140Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1172Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1200Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1229Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1258Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1295Assert.Equal(typeof(IFormFile), fromFileParam0.Type); 1301Assert.Equal(typeof(IFormFile), fromFileParam1.Type); 1313Assert.Equal(expectedType, param.Type); 1346Assert.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 (14)
Services\OpenApiDocumentService.cs (14)
560var parameterSchema = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 563if (description.Type == typeof(IFormFile) || description.Type == typeof(IFormFileCollection)) 641propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 649schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 677if (bodyParameter.Type == typeof(Stream) || bodyParameter.Type == typeof(PipeReader)) 701requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(document, bodyParameter.Type, scopedServiceProvider, schemaTransformers, bodyParameter, cancellationToken: cancellationToken) }; 724var parameterType = parameter.Type is not null 725? Nullable.GetUnderlyingType(parameter.Type) ?? parameter.Type 726: parameter.Type; 731&& parameter.ModelMetadata.ModelType != parameter.Type 739: parameter.Type;