Cohesive.Adapters.OpenApi
0.1.0-alpha.3
This is a prerelease version of Cohesive.Adapters.OpenApi.
dotnet add package Cohesive.Adapters.OpenApi --version 0.1.0-alpha.3
NuGet\Install-Package Cohesive.Adapters.OpenApi -Version 0.1.0-alpha.3
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.3" />
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.3" />
<PackageReference Include="Cohesive.Adapters.OpenApi" />
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.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cohesive.Adapters.OpenApi, 0.1.0-alpha.3"
#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.3
#: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.3&prerelease
#tool nuget:?package=Cohesive.Adapters.OpenApi&version=0.1.0-alpha.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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);
Related Packages
Cohesive.Apifor API declarations.Cohesive.CodeGen.Clifor build-time artifact generation.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Cohesive (>= 0.1.0-alpha.3)
- Cohesive.Api (>= 0.1.0-alpha.3)
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.3 | 43 | 7/8/2026 |
| 0.1.0-alpha.2 | 47 | 7/7/2026 |