JorgeCostaMacia.Http.OpenApi
3.0.2
Prefix Reserved
dotnet add package JorgeCostaMacia.Http.OpenApi --version 3.0.2
NuGet\Install-Package JorgeCostaMacia.Http.OpenApi -Version 3.0.2
<PackageReference Include="JorgeCostaMacia.Http.OpenApi" Version="3.0.2" />
<PackageVersion Include="JorgeCostaMacia.Http.OpenApi" Version="3.0.2" />
<PackageReference Include="JorgeCostaMacia.Http.OpenApi" />
paket add JorgeCostaMacia.Http.OpenApi --version 3.0.2
#r "nuget: JorgeCostaMacia.Http.OpenApi, 3.0.2"
#:package JorgeCostaMacia.Http.OpenApi@3.0.2
#addin nuget:?package=JorgeCostaMacia.Http.OpenApi&version=3.0.2
#tool nuget:?package=JorgeCostaMacia.Http.OpenApi&version=3.0.2
JorgeCostaMacia.Http.OpenApi
RFC 7807 schema transformer for native OpenAPI — a schema transformer for .NET's built-in OpenAPI generation that augments the ProblemDetails schemas with errors, requestId, traceId, nodeId and domain aggregate metadata, so your API docs match the error shape your services actually return.
Install
dotnet add package JorgeCostaMacia.Http.OpenApi
Usage
using JorgeCostaMacia.Http.OpenApi.Infrastructure;
using Microsoft.AspNetCore.OpenApi;
builder.Services.AddOpenApi(options => options.AddSchemaTransformer<ProblemDetailsSchemaTransformer>());
Registers ProblemDetailsSchemaTransformer, which adds errors, requestId, traceId, nodeId, aggregateId, aggregateCode and aggregateType to the ProblemDetails / ValidationProblemDetails / HttpValidationProblemDetails OpenAPI schemas, using the native Microsoft OpenAPI engine. The AddOpenApi call stays visible in your Program; the package only contributes the transformer.
Requirements
.NET 10 — uses the native Microsoft.AspNetCore.OpenApi (10.x) generation pipeline.
Depends on Microsoft.AspNetCore.OpenApi (which brings the ASP.NET Core shared framework transitively).
About
JorgeCostaMacia.Http.OpenApi is part of http-net — ASP.NET Core building blocks, each scoped to a single concern and reusable across your services.
- Repository: github.com/JorgeCostaMacia/http-net
- Issues & requests: open an issue
- Contributing: CONTRIBUTING.md
- Security: report a vulnerability
Author: Jorge Costa Maciá
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.OpenApi (>= 10.0.10)
- Microsoft.OpenApi (>= 2.7.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.