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)
1357Assert.Equal(typeof(int), parameter.Type); 1361Assert.Equal(typeof(string), parameter.Type); 1365Assert.Equal(typeof(string), parameter.Type); 1382Assert.Equal(typeof(string), parameter.Type); 1455Assert.Equal(typeof(int), parameter.Type); 1459Assert.Equal(typeof(string), parameter.Type); 1463Assert.Equal(typeof(string), parameter.Type); 1571Assert.Equal(typeof(int), parameter.Type); 1575Assert.Equal(typeof(string), parameter.Type); 1579Assert.Equal(typeof(string), parameter.Type); 1598Assert.Equal(typeof(int), id.Type); 1602Assert.Equal(typeof(Product), product.Type); 1606Assert.Equal(typeof(string), userId.Type); 1610Assert.Equal(typeof(string), comments.Type); 1629Assert.Equal(typeof(string), id.Type); 1648Assert.Equal(typeof(Guid), id.Type); 1667Assert.Equal(typeof(Guid?), id.Type); 1686Assert.Equal(typeof(string), id.Type); 1705Assert.Equal(typeof(string), id.Type); 1724Assert.Equal(typeof(string), id.Type); 1743Assert.Equal(typeof(string), id.Type); 1762Assert.Equal(typeof(string), id.Type); 1766Assert.Equal(typeof(string), product.Type); 1786Assert.Equal(typeof(int), id.Type); 1790Assert.Equal(typeof(Product), product.Type); 1794Assert.Equal(typeof(string), userId.Type); 1798Assert.Equal(typeof(string), comments.Type); 1817Assert.Equal(typeof(int), id.Type); 1821Assert.Equal(typeof(int), quantity.Type); 1825Assert.Equal(typeof(int), productId.Type); 1829Assert.Equal(typeof(decimal), price.Type); 1849Assert.Equal(typeof(int), id.Type); 1853Assert.Equal(typeof(int), quantity.Type); 1857Assert.Equal(typeof(int), productId.Type); 1861Assert.Equal(typeof(decimal), productPrice.Type); 1884Assert.Equal(typeof(int), id.Type); 1888Assert.Equal(typeof(string), name.Type); 1915Assert.Equal(typeof(int), id.Type); 1919Assert.Equal(typeof(string), name.Type); 1939Assert.Equal(typeof(Cycle1), c.Type); 1957Assert.Equal(typeof(Product[]), products.Type); 1976Assert.Equal(typeof(Child[]), items.Type); 1997Assert.Equal(typeof(int), id.Type); 2001Assert.Equal(typeof(string), name.Type); 2019Assert.Equal(typeof(string), name.Type); 2023Assert.Equal(typeof(int), id.Type); 2042Assert.Equal(typeof(string), name.Type); 2046Assert.Equal(typeof(int), id.Type); 2050Assert.Equal(typeof(Product), product.Type); 2054Assert.Equal(typeof(string), userId.Type); 2058Assert.Equal(typeof(string), comments.Type);
EndpointMetadataApiDescriptionProviderTest.cs (33)
113Assert.Equal("InferredJsonClass", apiParameterDescription.Type.Name); 128Assert.Equal("InferredJsonClass", apiParameterDescription.Type.Name); 637Assert.Equal(typeof(int), param.Type); 652Assert.Equal(typeof(TryParseStringRecord), param.Type); 666Assert.Equal(typeof(int), param.Type); 680Assert.Equal(expectedTYpe, param.Type); 701Assert.Equal(expectedTYpe, param.Type); 722Assert.Equal(typeof(int?), param.Type); 736Assert.Equal(typeof(TryParseStringRecordStruct), param.Type); 750Assert.Equal(typeof(T), param.Type); 772Assert.Equal(typeof(T), param.Type); 788Assert.Equal(typeof(int), param.Type); 816Assert.Equal(expectedType, param.Type); 842Assert.Equal(typeof(int), fooParam.Type); 849Assert.Equal(typeof(int), barParam.Type); 856Assert.Equal(typeof(InferredJsonClass), fromBodyParam.Type); 887Assert.Equal(typeof(InferredJsonClass), param.Type); 963Assert.Equal(typeof(int), fooParam.Type); 969Assert.Equal(typeof(int?), barParam.Type); 1008Assert.Equal(typeof(string), fooParam.Type); 1014Assert.Equal(typeof(int), barParam.Type); 1027Assert.Equal(typeof(string), nameParam.Type); 1266Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1325Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1357Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1389Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1417Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1446Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1475Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1512Assert.Equal(typeof(IFormFile), fromFileParam0.Type); 1518Assert.Equal(typeof(IFormFile), fromFileParam1.Type); 1530Assert.Equal(expectedType, param.Type); 1563Assert.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)
590var parameterSchema = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 593if (description.Type == typeof(IFormFile) || description.Type == typeof(IFormFileCollection)) 679propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 689schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 717if (bodyParameter.Type == typeof(Stream) || bodyParameter.Type == typeof(PipeReader)) 741requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(document, bodyParameter.Type, scopedServiceProvider, schemaTransformers, bodyParameter, cancellationToken: cancellationToken) }; 764var parameterType = parameter.Type is not null 765? Nullable.GetUnderlyingType(parameter.Type) ?? parameter.Type 766: parameter.Type; 771&& parameter.ModelMetadata.ModelType != parameter.Type 779: parameter.Type;