Soenneker.Dtos.ProblemDetails
11.0.483
Prefix Reserved
dotnet add package Soenneker.Dtos.ProblemDetails --version 11.0.483
NuGet\Install-Package Soenneker.Dtos.ProblemDetails -Version 11.0.483
<PackageReference Include="Soenneker.Dtos.ProblemDetails" Version="11.0.483" />
<PackageVersion Include="Soenneker.Dtos.ProblemDetails" Version="11.0.483" />
<PackageReference Include="Soenneker.Dtos.ProblemDetails" />
paket add Soenneker.Dtos.ProblemDetails --version 11.0.483
#r "nuget: Soenneker.Dtos.ProblemDetails, 11.0.483"
#:package Soenneker.Dtos.ProblemDetails@11.0.483
#addin nuget:?package=Soenneker.Dtos.ProblemDetails&version=11.0.483
#tool nuget:?package=Soenneker.Dtos.ProblemDetails&version=11.0.483
Soenneker.Dtos.ProblemDetails
A serializer-friendly problem-details DTO for APIs and clients that do not want a dependency on ASP.NET Core MVC's ProblemDetails type. It supports System.Text.Json.
Install
dotnet add package Soenneker.Dtos.ProblemDetails
Create a problem response
using Soenneker.Dtos.ProblemDetails;
var problem = new ProblemDetailsDto
{
Type = "https://api.example.com/problems/invalid-order",
Title = "The order is invalid",
Status = 400,
Detail = "At least one line item is required.",
Instance = "/orders/8f25"
};
problem.Extensions["orderId"] = "8f25";
problem.Extensions["retryable"] = false;
Extension entries are flattened into the top-level JSON object:
{
"type": "https://api.example.com/problems/invalid-order",
"title": "The order is invalid",
"status": 400,
"detail": "At least one line item is required.",
"instance": "/orders/8f25",
"orderId": "8f25",
"retryable": false
}
All standard members are optional. With System.Text.Json, null omission follows the options supplied to your serializer.
Status is payload data only—it does not set an HTTP response's status code. When deserializing, extension values may materialize as serializer-specific types such as JsonElement, so avoid assuming they round-trip to their original CLR types.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Attributes.PublicOpenApiObject (>= 11.0.66)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Soenneker.Dtos.ProblemDetails:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.HttpClient
A collection of helpful HttpClient extension methods, like retry and auto (de)serialization |
|
|
Soenneker.Extensions.HttpResponseMessage
A collection of helpful HttpResponseMessage extension methods |
|
|
Soenneker.Dtos.Results.Operation
A standardized wrapper for the outcome of an operation, containing either a successful result value or a ProblemDetails describing the error, along with an HTTP status code. |
|
|
Soenneker.Maui.Admob
A cross-platform library for adding Google Admob ads to MAUI applications |
|
|
Soenneker.TrustedForm.Blazor
Loads ActiveProspect TrustedForm in Blazor and exposes recording, certificate URL, and finalization controls. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.483 | 2,581 | 10/26/2026 |
| 11.0.482 | 804 | 10/26/2026 |
| 11.0.481 | 212 | 10/26/2026 |
| 4.0.480 | 1,381 | 10/25/2026 |
| 4.0.479 | 3,842 | 10/14/2026 |
| 4.0.478 | 793 | 10/14/2026 |
| 4.0.477 | 752 | 10/14/2026 |
| 4.0.476 | 125 | 10/14/2026 |
| 4.0.475 | 110 | 10/14/2026 |
| 4.0.470 | 817 | 10/13/2026 |
| 4.0.469 | 678 | 10/12/2026 |
| 4.0.467 | 897 | 10/12/2026 |
| 4.0.466 | 1,682 | 10/11/2026 |
| 4.0.465 | 129 | 10/11/2026 |
| 4.0.464 | 6,166 | 9/30/2026 |
| 4.0.463 | 4,946 | 9/24/2026 |
| 4.0.461 | 3,992 | 9/15/2026 |
| 4.0.460 | 108 | 9/15/2026 |
| 4.0.459 | 4,356 | 9/12/2026 |
| 4.0.458 | 134 | 9/12/2026 |
Updated Multiple NuGet packages