5 writes to ModelMetadata
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
83ModelMetadata = new GrpcModelMetadata(ModelMetadataIdentity.ForType(responseType)), 89ModelMetadata = new GrpcModelMetadata(ModelMetadataIdentity.ForType(typeof(Google.Rpc.Status))),
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (1)
291apiResponse.ModelMetadata = modelMetadataProvider?.GetMetadataForType(responseType);
EndpointMetadataApiDescriptionProvider.cs (2)
367apiResponseType.ModelMetadata = CreateModelMetadata(apiResponseType.Type); 406ModelMetadata = CreateModelMetadata(responseType),
38 references to ModelMetadata
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (38)
DefaultApiDescriptionProviderTest.cs (30)
501Assert.NotNull(responseType.ModelMetadata); 519Assert.NotNull(responseType.ModelMetadata); 538Assert.NotNull(responseType.ModelMetadata); 560Assert.NotNull(responseType.ModelMetadata); 578Assert.NotNull(responseType.ModelMetadata); 594Assert.NotNull(responseType.ModelMetadata); 610Assert.NotNull(responseType.ModelMetadata); 707Assert.NotNull(responseType.ModelMetadata); 714Assert.Null(responseType.ModelMetadata); 721Assert.NotNull(responseType.ModelMetadata); 728Assert.NotNull(responseType.ModelMetadata); 817Assert.Null(responseType.ModelMetadata); 824Assert.NotNull(responseType.ModelMetadata); 831Assert.NotNull(responseType.ModelMetadata); 880Assert.NotNull(responseType.ModelMetadata); 887Assert.Null(responseType.ModelMetadata); 894Assert.NotNull(responseType.ModelMetadata); 901Assert.NotNull(responseType.ModelMetadata); 950Assert.NotNull(responseType.ModelMetadata); 957Assert.Null(responseType.ModelMetadata); 964Assert.NotNull(responseType.ModelMetadata); 971Assert.NotNull(responseType.ModelMetadata); 1020Assert.NotNull(responseType.ModelMetadata); 1027Assert.NotNull(responseType.ModelMetadata); 1034Assert.NotNull(responseType.ModelMetadata); 1041Assert.NotNull(responseType.ModelMetadata); 1063Assert.Null(responseType.ModelMetadata); 1088Assert.Null(responseType.ModelMetadata); 1124Assert.NotNull(responseTypes.ModelMetadata); 1200Assert.NotNull(responseType.ModelMetadata);
EndpointMetadataApiDescriptionProviderTest.cs (8)
139Assert.Equal(expectedType, responseType.ModelMetadata?.ModelType); 158Assert.Equal(typeof(string), responseType.ModelMetadata?.ModelType); 173Assert.Equal(typeof(void), responseType.ModelMetadata?.ModelType); 195Assert.Equal(typeof(TimeSpan), responseType.ModelMetadata?.ModelType); 215Assert.Equal(typeof(TimeSpan), createdResponseType.ModelMetadata?.ModelType); 224Assert.Equal(typeof(InferredJsonClass), badRequestResponseType.ModelMetadata?.ModelType); 244Assert.Equal(typeof(InferredJsonClass), createdResponseType.ModelMetadata?.ModelType); 253Assert.Equal(typeof(void), badRequestResponseType.ModelMetadata?.ModelType);