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); 535Assert.Equal(typeof(int), param.Type); 550Assert.Equal(typeof(TryParseStringRecord), param.Type); 564Assert.Equal(typeof(int), param.Type); 578Assert.Equal(expectedTYpe, param.Type); 599Assert.Equal(expectedTYpe, param.Type); 620Assert.Equal(typeof(int?), param.Type); 634Assert.Equal(typeof(TryParseStringRecordStruct), param.Type); 648Assert.Equal(typeof(T), param.Type); 670Assert.Equal(typeof(T), param.Type); 686Assert.Equal(typeof(int), param.Type); 712Assert.Equal(expectedType, param.Type); 738Assert.Equal(typeof(int), fooParam.Type); 745Assert.Equal(typeof(int), barParam.Type); 752Assert.Equal(typeof(InferredJsonClass), fromBodyParam.Type); 783Assert.Equal(typeof(InferredJsonClass), param.Type); 859Assert.Equal(typeof(int), fooParam.Type); 865Assert.Equal(typeof(int?), barParam.Type); 904Assert.Equal(typeof(string), fooParam.Type); 910Assert.Equal(typeof(int), barParam.Type); 923Assert.Equal(typeof(string), nameParam.Type); 1162Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1221Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1253Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1285Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.Type); 1313Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1342Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1371Assert.Equal(typeof(IFormFile), bodyParameterDescription.Type); 1408Assert.Equal(typeof(IFormFile), fromFileParam0.Type); 1414Assert.Equal(typeof(IFormFile), fromFileParam1.Type); 1426Assert.Equal(expectedType, param.Type); 1459Assert.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)
570var parameterSchema = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 573if (description.Type == typeof(IFormFile) || description.Type == typeof(IFormFileCollection)) 659propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 669schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 697if (bodyParameter.Type == typeof(Stream) || bodyParameter.Type == typeof(PipeReader)) 721requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(document, bodyParameter.Type, scopedServiceProvider, schemaTransformers, bodyParameter, cancellationToken: cancellationToken) }; 744var parameterType = parameter.Type is not null 745? Nullable.GetUnderlyingType(parameter.Type) ?? parameter.Type 746: parameter.Type; 751&& parameter.ModelMetadata.ModelType != parameter.Type 759: parameter.Type;