34 writes to Type
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
106Type = "Type",
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
19problemDetails.Type = "https://tools.ietf.org/html/rfc9110#section-15.5.5";
ProblemDetailsJsonConverterTest.cs (3)
165Type = "https://tools.ietf.org/html/rfc9110#section-15.5.5", 196Type = "https://tools.ietf.org/html/rfc9110#section-15.5.5", 220Type = "https://tools.ietf.org/html/rfc9110#section-15.5.5",
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
193problemDetails.Type ??= defaults.Type;
Microsoft.AspNetCore.Http.Extensions.Tests (11)
ProblemDetailsDefaultWriterTest.cs (11)
35Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 72Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 104Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 138Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 180Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 220Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 257Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 300Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 343Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 386Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 429Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
Microsoft.AspNetCore.Http.Results (4)
Results.cs (1)
806Type = type,
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
193problemDetails.Type ??= defaults.Type;
TypedResults.cs (2)
794Type = type, 861Type = type,
Microsoft.AspNetCore.Http.Results.Tests (2)
ProblemResultTests.cs (1)
53.AddProblemDetails(options => options.CustomizeProblemDetails = x => x.ProblemDetails.Type = null)
ValidationProblemResultTests.cs (1)
57.AddProblemDetails(options => options.CustomizeProblemDetails = x => x.ProblemDetails.Type = null)
Microsoft.AspNetCore.Mvc.Core (6)
ControllerBase.cs (2)
1876Type = type, 1998Type = type,
Infrastructure\DefaultProblemDetailsFactory.cs (3)
52Type = type, 79Type = type, 102problemDetails.Type ??= clientErrorData.Link;
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
193problemDetails.Type ??= defaults.Type;
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (2)
31Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom", 68Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ProblemDetailsWrapper.cs (1)
100ProblemDetails.Type = value;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
AnnotatedProblemDetails.cs (1)
49problemDetails.Type = Type;
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
42Type = "some type",
95 references to Type
Microsoft.AspNetCore.Http.Abstractions.Tests (11)
HttpValidationProblemDetailsJsonConverterTest.cs (4)
35Assert.Equal(problemDetails.Type, document.RootElement.GetProperty("type").GetString()); 66Assert.Equal(type, problemDetails.Type); 109Assert.Equal(type, problemDetails.Type); 148Assert.Equal(type, problemDetails!.Type);
ProblemDetailsJsonConverterTest.cs (7)
50Assert.Equal(type, problemDetails.Type); 81Assert.Equal(type, problemDetails!.Type); 113Assert.Equal(type, problemDetails!.Type); 145Assert.Equal(type, problemDetails.Type); 175var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status},\"detail\":\"{value.Detail}\",\"instance\":\"{JsonEncodedText.Encode(value.Instance)}\",\"traceId\":\"{traceId}\",\"some-data\":[\"value1\",\"value2\"]}}"; 199var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status}}}"; 230var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status},\"detail\":\"{value.Detail}\",\"instance\":\"{JsonEncodedText.Encode(value.Instance)}\",\"traceId\":null,\"some-data\":[\"value1\",\"value2\"]}}";
Microsoft.AspNetCore.Http.Extensions.Tests (21)
ProblemDetailsDefaultWriterTest.cs (21)
52Assert.Equal(expectedProblem.Type, problemDetails.Type); 157Assert.Equal(expectedProblem.Type, problemDetails.Type); 197Assert.Equal(expectedProblem.Type, problemDetails.Type); 237Assert.Equal(expectedProblem.Type, problemDetails.Type); 276Assert.Equal(expectedProblem.Type, problemDetails.Type); 319Assert.Equal(expectedProblem.Type, problemDetails.Type); 362Assert.Equal(expectedProblem.Type, problemDetails.Type); 405Assert.Equal(expectedProblem.Type, problemDetails.Type); 448Assert.Equal(expectedProblem.Type, problemDetails.Type); 562Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", problemDetails.Type); 598Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type); 630Assert.Equal(type, problemDetails.Type);
Microsoft.AspNetCore.Http.Results (8)
Results.cs (4)
711/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 730/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 761/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 785/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param>
TypedResults.cs (4)
754/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 775/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 821/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 842/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param>
Microsoft.AspNetCore.Http.Results.Tests (22)
JsonResultTests.cs (3)
136Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", responseDetails.Type); 165Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", responseDetails.Type); 197Assert.Null(responseDetails.Type);
ProblemResultTests.cs (4)
39Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", responseDetails.Type); 71Assert.Null(responseDetails.Type); 100Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", responseDetails.Type); 132Assert.Null(responseDetails.Type);
ResultsTests.cs (7)
1267Assert.Equal(type, result.ProblemDetails.Type); 1291Assert.Equal(type, result.ProblemDetails.Type); 1315Assert.Equal(type, result.ProblemDetails.Type); 1336Assert.Equal(type, result.ProblemDetails.Type); 1353Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", result.ProblemDetails.Type); 1421Assert.Equal(type, result.ProblemDetails.Type); 1452Assert.Equal(type, result.ProblemDetails.Type);
TypedResultsTests.cs (6)
1083Assert.Equal(type, result.ProblemDetails.Type); 1107Assert.Equal(type, result.ProblemDetails.Type); 1128Assert.Equal(type, result.ProblemDetails.Type); 1145Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", result.ProblemDetails.Type); 1208Assert.Equal(type, result.ProblemDetails.Type); 1234Assert.Equal(type, result.ProblemDetails.Type);
ValidationProblemResultTests.cs (2)
43Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", responseDetails.Type); 75Assert.Null(responseDetails.Type);
Microsoft.AspNetCore.Mvc.Core (8)
ClientErrorData.cs (1)
16/// By default, this maps to <see cref="ProblemDetails.Type"/>.
ControllerBase.cs (4)
1835/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1854/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1946/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1970/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param>
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
60context.ProblemDetails.Type,
Infrastructure\ProblemDetailsFactory.cs (2)
20/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 39/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param>
Microsoft.AspNetCore.Mvc.Core.Test (21)
ControllerBaseTest.cs (5)
2360Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type); 2386Assert.Equal(type, problemDetails.Type); 2479Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", problemDetails.Type); 2505Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", problemDetails.Type); 2550Assert.Equal("https://tools.ietf.org/html/rfc4918#section-11.2", problemDetails.Type);
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (2)
47Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type); 69Assert.Equal(link, problemDetails.Type);
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (4)
48Assert.Equal(expectedProblem.Type, problemDetails.Type); 87Assert.Equal(expectedProblem.Type, problemDetails.Type);
Infrastructure\ProblemDetailsFactoryTest.cs (6)
24Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", problemDetails.Type); 45Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.7", problemDetails.Type); 68Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.7", problemDetails.Type); 91Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type); 121Assert.Equal("https://tools.ietf.org/html/rfc4918#section-11.2", problemDetails.Type); 153Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (1)
61Assert.Equal("Some link", problemDetails.Type);
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (3)
32Assert.Equal(type, problemDetails.Type); 74Assert.Equal(type, problemDetails.Type); 112Assert.Equal(type, problemDetails.Type);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
ProblemDetailsWrapper.cs (2)
145if (!string.IsNullOrEmpty(ProblemDetails.Type)) 149ProblemDetails.Type);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ApiBehaviorTest.cs (1)
71Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
AnnotatedProblemDetails.cs (1)
21Type = problemDetails.Type;