6 writes to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (1)
663Type = 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)
1328Assert.Equal(typeof(int), parameter.Type); 1332Assert.Equal(typeof(string), parameter.Type); 1336Assert.Equal(typeof(string), parameter.Type); 1353Assert.Equal(typeof(string), parameter.Type); 1426Assert.Equal(typeof(int), parameter.Type); 1430Assert.Equal(typeof(string), parameter.Type); 1434Assert.Equal(typeof(string), parameter.Type); 1528Assert.Equal(typeof(int), parameter.Type); 1532Assert.Equal(typeof(string), parameter.Type); 1536Assert.Equal(typeof(string), parameter.Type); 1555Assert.Equal(typeof(int), id.Type); 1559Assert.Equal(typeof(Product), product.Type); 1563Assert.Equal(typeof(string), userId.Type); 1567Assert.Equal(typeof(string), comments.Type); 1586Assert.Equal(typeof(string), id.Type); 1605Assert.Equal(typeof(Guid), id.Type); 1624Assert.Equal(typeof(Guid?), id.Type); 1643Assert.Equal(typeof(string), id.Type); 1662Assert.Equal(typeof(string), id.Type); 1681Assert.Equal(typeof(string), id.Type); 1700Assert.Equal(typeof(string), id.Type); 1719Assert.Equal(typeof(string), id.Type); 1723Assert.Equal(typeof(string), product.Type); 1743Assert.Equal(typeof(int), id.Type); 1747Assert.Equal(typeof(Product), product.Type); 1751Assert.Equal(typeof(string), userId.Type); 1755Assert.Equal(typeof(string), comments.Type); 1774Assert.Equal(typeof(int), id.Type); 1778Assert.Equal(typeof(int), quantity.Type); 1782Assert.Equal(typeof(int), productId.Type); 1786Assert.Equal(typeof(decimal), price.Type); 1806Assert.Equal(typeof(int), id.Type); 1810Assert.Equal(typeof(int), quantity.Type); 1814Assert.Equal(typeof(int), productId.Type); 1818Assert.Equal(typeof(decimal), productPrice.Type); 1841Assert.Equal(typeof(int), id.Type); 1845Assert.Equal(typeof(string), name.Type); 1872Assert.Equal(typeof(int), id.Type); 1876Assert.Equal(typeof(string), name.Type); 1896Assert.Equal(typeof(Cycle1), c.Type); 1914Assert.Equal(typeof(Product[]), products.Type); 1933Assert.Equal(typeof(Child[]), items.Type); 1954Assert.Equal(typeof(int), id.Type); 1958Assert.Equal(typeof(string), name.Type); 1976Assert.Equal(typeof(string), name.Type); 1980Assert.Equal(typeof(int), id.Type); 1999Assert.Equal(typeof(string), name.Type); 2003Assert.Equal(typeof(int), id.Type); 2007Assert.Equal(typeof(Product), product.Type); 2011Assert.Equal(typeof(string), userId.Type); 2015Assert.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)
522var parameterSchema = await _componentService.GetOrCreateSchemaAsync(description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 525if (description.Type == typeof(IFormFile) || description.Type == typeof(IFormFileCollection)) 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); 638if (bodyParameter.Type == typeof(Stream) || bodyParameter.Type == typeof(PipeReader)) 662requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(bodyParameter.Type, scopedServiceProvider, schemaTransformers, bodyParameter, captureSchemaByRef: true, cancellationToken: cancellationToken) }; 685var parameterType = parameter.Type is not null 686? Nullable.GetUnderlyingType(parameter.Type) ?? parameter.Type 687: parameter.Type; 692&& parameter.ModelMetadata.ModelType != parameter.Type 700: parameter.Type;