Corvus.Text.Json.OpenApi 5.1.18

dotnet add package Corvus.Text.Json.OpenApi --version 5.1.18
                    
NuGet\Install-Package Corvus.Text.Json.OpenApi -Version 5.1.18
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Corvus.Text.Json.OpenApi" Version="5.1.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Corvus.Text.Json.OpenApi" Version="5.1.18" />
                    
Directory.Packages.props
<PackageReference Include="Corvus.Text.Json.OpenApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Corvus.Text.Json.OpenApi --version 5.1.18
                    
#r "nuget: Corvus.Text.Json.OpenApi, 5.1.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Corvus.Text.Json.OpenApi@5.1.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Corvus.Text.Json.OpenApi&version=5.1.18
                    
Install as a Cake Addin
#tool nuget:?package=Corvus.Text.Json.OpenApi&version=5.1.18
                    
Install as a Cake Tool

Corvus.Text.Json.OpenApi

Shared interfaces and types for walking OpenAPI and AsyncAPI specifications, extracting schemas for code generation.

Key Types

  • ISpecWalker — walks a spec document to produce an operation tree and extract schemas
  • OperationFilter — glob-based filtering for paths/channels (include/exclude patterns)
  • ExtractedSchema — a schema reference with its role and originating operation
  • OperationNode / OperationInfo — the operation tree structure
  • SchemaRole — identifies how a schema is used (request body, response, parameter, message payload, etc.)

Usage

For OpenAPI 3.1, use the self-contained OpenApi31CodeGenerator which walks the strongly-typed model directly and emits C# source files:

using Corvus.Text.Json.OpenApi;
using Corvus.Text.Json.OpenApi31;

// Collect schema pointers for the V5 code generator
string[] pointers = OpenApi31CodeGenerator.CollectSchemaPointers(specRoot);

// Generate client code
var gen = new OpenApi31CodeGenerator("MyApp.Client", schemaTypeMap);
IReadOnlyList<GeneratedFile> files = gen.Generate(specRoot);

For OpenAPI 3.0, the ISpecWalker pipeline is used:

using Corvus.Text.Json.OpenApi;

ISpecWalker walker = new OpenApi30Walker();
var filter = new OperationFilter(includePaths: ["/pets/**"]);

foreach (OperationEntry entry in walker.EnumerateOperations(specRoot, filter))
{
    Console.WriteLine($"{entry.OperationId} {entry.Method} {entry.PathTemplate}");
}
  • Corvus.Text.Json.OpenApi30 — V5 types for OpenAPI 3.0 specs
  • Corvus.Text.Json.OpenApi31 — V5 types for OpenAPI 3.1 specs
  • Corvus.Text.Json — Core library
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Corvus.Text.Json.OpenApi:

Package Downloads
Corvus.Text.Json.OpenApi.CodeGeneration

Code generation for .NET API clients and servers from OpenAPI and AsyncAPI specifications. Produces strongly-typed C# using Corvus.Text.Json zero-allocation types.

Corvus.Text.Json.OpenApi31

Strongly-typed V5 model types for OpenAPI 3.1 specifications, generated from the official OpenAPI 3.1 JSON Schema metaschema using the Corvus.Text.Json source generator.

Corvus.Text.Json.OpenApi30

Strongly-typed V5 model types for OpenAPI 3.0 specifications, generated from the official OpenAPI 3.0 JSON Schema metaschema using the Corvus.Text.Json source generator.

Corvus.Text.Json.OpenApi32

Strongly-typed V5 model types for OpenAPI 3.2 specifications, generated from the official OpenAPI 3.2 JSON Schema metaschema using the Corvus.Text.Json source generator.

Corvus.Text.Json.OpenApi.HttpTransport

HttpClient-based transport for Corvus OpenAPI generated clients. Implements IApiTransport using HttpClient with rented-buffer response bodies for zero-copy parsing.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.1.18 0 6/17/2026
5.1.17 0 6/17/2026
5.1.16 148 6/10/2026
5.1.14 140 6/9/2026
5.1.13 132 6/9/2026
5.1.12 149 6/8/2026
5.1.11 149 6/7/2026
5.1.10 146 6/7/2026
5.1.9 154 6/6/2026
5.1.8 143 6/5/2026
5.1.7 142 6/5/2026
5.1.6 144 6/4/2026
5.1.5 145 6/2/2026
5.1.4 149 6/2/2026
5.1.3 144 5/31/2026
5.1.2 150 5/31/2026
5.1.1 152 5/31/2026
5.1.0 157 5/28/2026