Cohesive.Adapters.OpenApi 0.1.0-alpha.67

This is a prerelease version of Cohesive.Adapters.OpenApi.
dotnet add package Cohesive.Adapters.OpenApi --version 0.1.0-alpha.67
                    
NuGet\Install-Package Cohesive.Adapters.OpenApi -Version 0.1.0-alpha.67
                    
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.67" />
                    
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.67" />
                    
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.67
                    
#r "nuget: Cohesive.Adapters.OpenApi, 0.1.0-alpha.67"
                    
#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.67
                    
#: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.67&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cohesive.Adapters.OpenApi&version=0.1.0-alpha.67&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.67 40 8/26/2026
0.1.0-alpha.66.2 34 8/27/2026
0.1.0-alpha.66.1 47 8/26/2026
0.1.0-alpha.66 76 8/25/2026
0.1.0-alpha.65 48 8/25/2026
0.1.0-alpha.64 51 8/25/2026
0.1.0-alpha.63 64 8/24/2026
0.1.0-alpha.62 68 8/24/2026
0.1.0-alpha.61 69 8/24/2026
0.1.0-alpha.60 48 8/24/2026
0.1.0-alpha.59 60 8/24/2026
0.1.0-alpha.58 52 8/24/2026
0.1.0-alpha.57 54 8/24/2026
0.1.0-alpha.56 58 8/24/2026
0.1.0-alpha.55 59 8/23/2026
0.1.0-alpha.54 51 8/23/2026
0.1.0-alpha.53 60 8/23/2026
0.1.0-alpha.52 69 8/23/2026
0.1.0-alpha.51 52 8/23/2026
0.1.0-alpha.50 51 8/23/2026
Loading failed