Cohesive.Adapters.OpenApi 0.1.0-alpha.28

This is a prerelease version of Cohesive.Adapters.OpenApi.
dotnet add package Cohesive.Adapters.OpenApi --version 0.1.0-alpha.28
                    
NuGet\Install-Package Cohesive.Adapters.OpenApi -Version 0.1.0-alpha.28
                    
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="Cohesive.Adapters.OpenApi" Version="0.1.0-alpha.28" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cohesive.Adapters.OpenApi" Version="0.1.0-alpha.28" />
                    
Directory.Packages.props
<PackageReference Include="Cohesive.Adapters.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 Cohesive.Adapters.OpenApi --version 0.1.0-alpha.28
                    
#r "nuget: Cohesive.Adapters.OpenApi, 0.1.0-alpha.28"
                    
#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 Cohesive.Adapters.OpenApi@0.1.0-alpha.28
                    
#: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=Cohesive.Adapters.OpenApi&version=0.1.0-alpha.28&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cohesive.Adapters.OpenApi&version=0.1.0-alpha.28&prerelease
                    
Install as a Cake Tool

Cohesive.Adapters.OpenApi

OpenAPI document emission and endpoint helpers for Cohesive API declarations.

Install

dotnet add package Cohesive.Adapters.OpenApi

Use When

  • You want OpenAPI artifacts generated from Cohesive API declarations.
  • You need endpoint helpers for publishing generated OpenAPI documents.
  • You want OpenAPI, GraphQL, and TypeScript clients to share one semantic API source.

Example

using Cohesive.Adapters.OpenApi;
using Cohesive.Api;

var api = Api.Define("Shipping")
    .Entity<ShipmentDto>()
    .Query("Get")
        .Route("GET", "/shipments/{id}")
        .RouteParameter<string>("id")
        .Returns<ShipmentDto>()
        .Done()
    .Build();

var document = new OpenApiEmitter().Emit(api).Documents.Single();
app.MapCohesiveOpenApi(api);
  • Cohesive.Api for API declarations.
  • Cohesive.CodeGen.Cli for build-time artifact generation.
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 (1)

Showing the top 1 NuGet packages that depend on Cohesive.Adapters.OpenApi:

Package Downloads
Cohesive.CodeGen.Cli

Cohesive semantic system definition and orchestration building blocks.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.28 0 8/17/2026
0.1.0-alpha.27 0 8/17/2026
0.1.0-alpha.26 0 8/16/2026
0.1.0-alpha.25 0 8/16/2026
0.1.0-alpha.24 19 8/16/2026
0.1.0-alpha.23 33 8/16/2026
0.1.0-alpha.22 36 8/16/2026
0.1.0-alpha.21 31 8/16/2026
0.1.0-alpha.20 51 8/15/2026
0.1.0-alpha.19 36 8/15/2026
0.1.0-alpha.18 40 8/15/2026
0.1.0-alpha.17 46 8/14/2026
0.1.0-alpha.16 42 8/13/2026
0.1.0-alpha.15 42 8/13/2026
0.1.0-alpha.14 44 8/13/2026
0.1.0-alpha.13 42 8/12/2026
0.1.0-alpha.12 42 8/12/2026
0.1.0-alpha.11 47 8/12/2026
0.1.0-alpha.10 47 8/12/2026
0.1.0-alpha.9 47 8/11/2026
Loading failed