6 writes to Type
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (1)
663
Type
= GetModelType(bindingContext.ModelMetadata),
EndpointMetadataApiDescriptionProvider.cs (2)
148
Type
= acceptsRequestType ?? typeof(void),
194
Type
= parameter.ParameterInfo.ParameterType,
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchOperationsArrayProvider.cs (1)
46
parameterDescription.
Type
= typeof(Operation[]);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
JsonPatchOperationsArrayProviderTests.cs (2)
22
Type
= typeof(JsonPatchDocument)
27
Type
= typeof(string),
103 references to Type
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
68
Type = parameter.
Type
?.FullName,
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
139
var requestFormats = GetSupportedFormats(contentTypes, parameter.
Type
);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (84)
DefaultApiDescriptionProviderTest.cs (51)
1328
Assert.Equal(typeof(int), parameter.
Type
);
1332
Assert.Equal(typeof(string), parameter.
Type
);
1336
Assert.Equal(typeof(string), parameter.
Type
);
1353
Assert.Equal(typeof(string), parameter.
Type
);
1426
Assert.Equal(typeof(int), parameter.
Type
);
1430
Assert.Equal(typeof(string), parameter.
Type
);
1434
Assert.Equal(typeof(string), parameter.
Type
);
1528
Assert.Equal(typeof(int), parameter.
Type
);
1532
Assert.Equal(typeof(string), parameter.
Type
);
1536
Assert.Equal(typeof(string), parameter.
Type
);
1555
Assert.Equal(typeof(int), id.
Type
);
1559
Assert.Equal(typeof(Product), product.
Type
);
1563
Assert.Equal(typeof(string), userId.
Type
);
1567
Assert.Equal(typeof(string), comments.
Type
);
1586
Assert.Equal(typeof(string), id.
Type
);
1605
Assert.Equal(typeof(Guid), id.
Type
);
1624
Assert.Equal(typeof(Guid?), id.
Type
);
1643
Assert.Equal(typeof(string), id.
Type
);
1662
Assert.Equal(typeof(string), id.
Type
);
1681
Assert.Equal(typeof(string), id.
Type
);
1700
Assert.Equal(typeof(string), id.
Type
);
1719
Assert.Equal(typeof(string), id.
Type
);
1723
Assert.Equal(typeof(string), product.
Type
);
1743
Assert.Equal(typeof(int), id.
Type
);
1747
Assert.Equal(typeof(Product), product.
Type
);
1751
Assert.Equal(typeof(string), userId.
Type
);
1755
Assert.Equal(typeof(string), comments.
Type
);
1774
Assert.Equal(typeof(int), id.
Type
);
1778
Assert.Equal(typeof(int), quantity.
Type
);
1782
Assert.Equal(typeof(int), productId.
Type
);
1786
Assert.Equal(typeof(decimal), price.
Type
);
1806
Assert.Equal(typeof(int), id.
Type
);
1810
Assert.Equal(typeof(int), quantity.
Type
);
1814
Assert.Equal(typeof(int), productId.
Type
);
1818
Assert.Equal(typeof(decimal), productPrice.
Type
);
1841
Assert.Equal(typeof(int), id.
Type
);
1845
Assert.Equal(typeof(string), name.
Type
);
1872
Assert.Equal(typeof(int), id.
Type
);
1876
Assert.Equal(typeof(string), name.
Type
);
1896
Assert.Equal(typeof(Cycle1), c.
Type
);
1914
Assert.Equal(typeof(Product[]), products.
Type
);
1933
Assert.Equal(typeof(Child[]), items.
Type
);
1954
Assert.Equal(typeof(int), id.
Type
);
1958
Assert.Equal(typeof(string), name.
Type
);
1976
Assert.Equal(typeof(string), name.
Type
);
1980
Assert.Equal(typeof(int), id.
Type
);
1999
Assert.Equal(typeof(string), name.
Type
);
2003
Assert.Equal(typeof(int), id.
Type
);
2007
Assert.Equal(typeof(Product), product.
Type
);
2011
Assert.Equal(typeof(string), userId.
Type
);
2015
Assert.Equal(typeof(string), comments.
Type
);
EndpointMetadataApiDescriptionProviderTest.cs (33)
113
Assert.Equal("InferredJsonClass", apiParameterDescription.
Type
.Name);
128
Assert.Equal("InferredJsonClass", apiParameterDescription.
Type
.Name);
422
Assert.Equal(typeof(int), param.
Type
);
437
Assert.Equal(typeof(TryParseStringRecord), param.
Type
);
451
Assert.Equal(typeof(int), param.
Type
);
465
Assert.Equal(expectedTYpe, param.
Type
);
486
Assert.Equal(expectedTYpe, param.
Type
);
507
Assert.Equal(typeof(int?), param.
Type
);
521
Assert.Equal(typeof(TryParseStringRecordStruct), param.
Type
);
535
Assert.Equal(typeof(T), param.
Type
);
557
Assert.Equal(typeof(T), param.
Type
);
573
Assert.Equal(typeof(int), param.
Type
);
599
Assert.Equal(expectedType, param.
Type
);
625
Assert.Equal(typeof(int), fooParam.
Type
);
632
Assert.Equal(typeof(int), barParam.
Type
);
639
Assert.Equal(typeof(InferredJsonClass), fromBodyParam.
Type
);
670
Assert.Equal(typeof(InferredJsonClass), param.
Type
);
746
Assert.Equal(typeof(int), fooParam.
Type
);
752
Assert.Equal(typeof(int?), barParam.
Type
);
791
Assert.Equal(typeof(string), fooParam.
Type
);
797
Assert.Equal(typeof(int), barParam.
Type
);
810
Assert.Equal(typeof(string), nameParam.
Type
);
1049
Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.
Type
);
1108
Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.
Type
);
1140
Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.
Type
);
1172
Assert.Equal(typeof(InferredJsonClass), bodyParameterDescription.
Type
);
1200
Assert.Equal(typeof(IFormFile), bodyParameterDescription.
Type
);
1229
Assert.Equal(typeof(IFormFile), bodyParameterDescription.
Type
);
1258
Assert.Equal(typeof(IFormFile), bodyParameterDescription.
Type
);
1295
Assert.Equal(typeof(IFormFile), fromFileParam0.
Type
);
1301
Assert.Equal(typeof(IFormFile), fromFileParam1.
Type
);
1313
Assert.Equal(expectedType, param.
Type
);
1346
Assert.Equal(typeof(IFormFileCollection), bodyParameterDescription.
Type
);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchOperationsArrayProvider.cs (1)
44
if (typeof(IJsonPatchDocument).GetTypeInfo().IsAssignableFrom(parameterDescription.
Type
))
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
JsonPatchOperationsArrayProviderTests.cs (2)
45
Assert.Equal(typeof(Operation[]), description.
Type
);
50
Assert.Equal(typeof(string), description.
Type
);
Microsoft.AspNetCore.OpenApi (14)
Services\OpenApiDocumentService.cs (14)
522
var parameterSchema = await _componentService.GetOrCreateSchemaAsync(description.
Type
, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken);
525
if (description.
Type
== typeof(IFormFile) || description.
Type
== typeof(IFormFileCollection))
603
propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(description.
Type
, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken);
611
schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(description.
Type
, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken);
638
if (bodyParameter.
Type
== typeof(Stream) || bodyParameter.
Type
== typeof(PipeReader))
662
requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(bodyParameter.
Type
, scopedServiceProvider, schemaTransformers, bodyParameter, captureSchemaByRef: true, cancellationToken: cancellationToken) };
685
var 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
;