2 types derived from ProblemDetails
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
48 instantiations of ProblemDetails
BasicWebSite (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Results.Tests (19)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Core.Test (13)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
XmlFormattersWebSite (1)
356 references to ProblemDetails
Diagnostics.FunctionalTests (10)
FormatterWebSite (1)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.Tests (8)
Microsoft.AspNetCore.Http.Abstractions (9)
Microsoft.AspNetCore.Http.Abstractions.Tests (13)
Microsoft.AspNetCore.Http.Extensions (65)
ProblemDetailsJsonContext.HttpValidationProblemDetails.g.cs (24)
78DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
80Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type,
81Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type = value!,
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
99DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
101Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title,
102Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title = value!,
109AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
120DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
122Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status,
123Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status = value!,
130AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
141DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
143Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail,
144Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail = value!,
151AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
162DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
164Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance,
165Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance = value!,
172AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
183DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
185Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions,
186Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions = value!,
193AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
ProblemDetailsJsonContext.ProblemDetails.g.cs (34)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails>? _ProblemDetails;
19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails> ProblemDetails
22get => _ProblemDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails));
25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails> Create_ProblemDetails(global::System.Text.Json.JsonSerializerOptions options)
27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Mvc.ProblemDetails>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails> jsonTypeInfo))
29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Mvc.ProblemDetails>
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails>(options, objectInfo);
56DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
58Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type,
59Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type = value!,
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
77DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
79Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title,
80Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title = value!,
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
100Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status,
101Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status = value!,
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
119DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
121Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail,
122Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail = value!,
129AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
140DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
142Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance,
143Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance = value!,
150AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
161DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails),
163Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions,
164Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions = value!,
171AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Http.Results (65)
Microsoft.AspNetCore.Http.Results.Tests (34)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (13)
ApiResponseTypeProviderTest.cs (10)
83new FilterDescriptor(new ProducesResponseTypeAttribute(typeof(ProblemDetails), 400), FilterScope.Controller),
118Assert.Equal(typeof(ProblemDetails), responseType.Type);
441var errorType = typeof(ProblemDetails);
637actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails));
650Assert.Equal(typeof(ProblemDetails), responseType.Type);
667Assert.Equal(typeof(ProblemDetails), responseType.Type);
687actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails));
717actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails));
775actionDescriptor.FilterDescriptors.Add(new FilterDescriptor(new ProducesResponseTypeAttribute(typeof(ProblemDetails), 404, "application/problem+json"), FilterScope.Action));
801Assert.Equal(typeof(ProblemDetails), responseType.Type);
Microsoft.AspNetCore.Mvc.Core (55)
Microsoft.AspNetCore.Mvc.Core.Test (36)
Microsoft.AspNetCore.Mvc.Formatters.Xml (5)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
Microsoft.AspNetCore.Mvc.FunctionalTests (14)
ApiExplorerTest.cs (10)
1293Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1349Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1384Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1419Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1454Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1460Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1494Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1500Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1531Assert.Equal(typeof(ProblemDetails).FullName, responseType.ResponseType);
1538[InlineData("ActionWithNoExplicitType", typeof(ProblemDetails))]
Microsoft.AspNetCore.Mvc.NewtonsoftJson (8)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OpenApi.Tests (7)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Routing.Tests (1)
Mvc.Api.Analyzers.Test (1)