Cohesive.Adapters.OpenApi 0.1.0-alpha.26

This is a prerelease version of Cohesive.Adapters.OpenApi.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Cohesive.Adapters.OpenApi --version 0.1.0-alpha.26
                    
NuGet\Install-Package Cohesive.Adapters.OpenApi -Version 0.1.0-alpha.26
                    
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.26" />
                    
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.26" />
                    
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.26
                    
#r "nuget: Cohesive.Adapters.OpenApi, 0.1.0-alpha.26"
                    
#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.26
                    
#: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.26&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cohesive.Adapters.OpenApi&version=0.1.0-alpha.26&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.69 33 9/2/2026
0.1.0-alpha.68 47 8/30/2026
0.1.0-alpha.67 69 8/26/2026
0.1.0-alpha.66.4 111 8/30/2026
0.1.0-alpha.66.3 63 8/29/2026
0.1.0-alpha.66.2 57 8/27/2026
0.1.0-alpha.66.1 66 8/26/2026
0.1.0-alpha.66 96 8/25/2026
0.1.0-alpha.65 63 8/25/2026
0.1.0-alpha.64 66 8/25/2026
0.1.0-alpha.63 70 8/24/2026
0.1.0-alpha.62 79 8/24/2026
0.1.0-alpha.61 76 8/24/2026
0.1.0-alpha.60 55 8/24/2026
0.1.0-alpha.59 69 8/24/2026
0.1.0-alpha.58 59 8/24/2026
0.1.0-alpha.57 63 8/24/2026
0.1.0-alpha.56 68 8/24/2026
0.1.0-alpha.55 68 8/23/2026
0.1.0-alpha.26 82 8/16/2026
Loading failed