OpenApiGenerator 0.2.0
See the version list below for details.
dotnet add package OpenApiGenerator --version 0.2.0
NuGet\Install-Package OpenApiGenerator -Version 0.2.0
<PackageReference Include="OpenApiGenerator" Version="0.2.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add OpenApiGenerator --version 0.2.0
#r "nuget: OpenApiGenerator, 0.2.0"
// Install OpenApiGenerator as a Cake Addin #addin nuget:?package=OpenApiGenerator&version=0.2.0 // Install OpenApiGenerator as a Cake Tool #tool nuget:?package=OpenApiGenerator&version=0.2.0
OpenApiGenerator
Allows you to partially (for example, only models) or completely generate a native (without dependencies) C# client sdk according to the OpenAPI specification.
Inspired by NSwag
🔥Features🔥
- Uses Incremental Source Generators for efficient generation and caching.
- Detects your TargetFramework and generates optimal code for it (including net6.0/net7.0/net8.0 improvements)
- Supports .Net Framework/.Net Standard
- Does not contain dependencies for modern versions of dotnet
- Only System.Text.Json dependency for .Net Framework/.Net Standard
- Any generated methods provide the ability to pass a CancellationToken
- Allows partial generation (models only) or end points filtering
- Available under MIT license for general users and most organizations
- Uses https://github.com/microsoft/OpenAPI.NET for parsing OpenAPI specification
- Supports trimming/native AOT compilation
🚀Quick start🚀
- Install the package
dotnet add package OpenApiGenerator
- Add the following to your csproj file. You can check all settings here:
<ItemGroup Label="OpenApiGenerator">
<AdditionalFiles Include="$(MSBuildThisFileDirectory)../../../docs/openapi.yaml" />
</ItemGroup>
<PropertyGroup Label="OpenApiGenerator">
<OpenApiGenerator_Namespace>Ollama</OpenApiGenerator_Namespace>
<OpenApiGenerator_ClassName>OllamaApi</OpenApiGenerator_ClassName>
<OpenApiGenerator_GenerateModels>true</OpenApiGenerator_GenerateModels>
<OpenApiGenerator_GenerateSdk>false</OpenApiGenerator_GenerateSdk>
</PropertyGroup>
- It's all! Now you can build your project and use the generated code. You also can use IDE to see the generated code in any moment, this is a example for Rider:
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.22.6-dev.7 | 186 | 9/9/2024 | |
0.22.6-dev.6 | 52 | 9/9/2024 | |
0.22.6-dev.4 | 59 | 9/7/2024 | |
0.22.6-dev.2 | 54 | 9/7/2024 | |
0.22.6-dev.1 | 52 | 9/7/2024 | |
0.22.5 | 199 | 9/7/2024 | |
0.22.4 | 102 | 9/7/2024 | |
0.22.3 | 116 | 9/7/2024 | |
0.22.2 | 111 | 9/7/2024 | |
0.22.1 | 109 | 9/7/2024 | |
0.22.0 | 101 | 9/7/2024 | |
0.21.1 | 103 | 9/6/2024 | |
0.21.0 | 110 | 9/6/2024 | |
0.20.2 | 115 | 8/31/2024 | |
0.20.1 | 104 | 8/31/2024 | |
0.20.0 | 105 | 8/30/2024 | |
0.19.0 | 103 | 8/30/2024 | |
0.18.0 | 102 | 8/29/2024 | |
0.17.1 | 108 | 8/28/2024 | |
0.17.0 | 120 | 8/28/2024 | |
0.16.4-dev.7 | 56 | 8/28/2024 | |
0.16.3 | 146 | 8/24/2024 | |
0.16.2 | 122 | 8/24/2024 | |
0.16.1 | 133 | 8/23/2024 | |
0.16.0 | 132 | 8/22/2024 | |
0.15.8 | 132 | 8/22/2024 | |
0.15.7 | 137 | 8/19/2024 | |
0.15.6 | 129 | 8/18/2024 | |
0.15.5 | 127 | 8/18/2024 | |
0.15.4 | 122 | 8/15/2024 | |
0.15.3 | 129 | 8/13/2024 | |
0.15.2 | 137 | 8/13/2024 | |
0.15.1 | 120 | 8/12/2024 | |
0.15.0 | 126 | 8/11/2024 | |
0.14.3 | 101 | 8/6/2024 | |
0.14.2 | 99 | 8/5/2024 | |
0.14.1 | 98 | 8/5/2024 | |
0.14.0 | 97 | 8/5/2024 | |
0.13.11 | 699 | 7/22/2024 | |
0.13.10 | 136 | 7/21/2024 | |
0.13.9 | 110 | 7/18/2024 | |
0.13.8 | 109 | 7/15/2024 | |
0.13.7 | 98 | 7/15/2024 | |
0.13.6 | 117 | 7/14/2024 | |
0.13.5 | 97 | 7/14/2024 | |
0.13.4 | 103 | 7/13/2024 | |
0.13.3 | 91 | 7/9/2024 | |
0.13.2 | 95 | 7/8/2024 | |
0.13.1 | 103 | 7/8/2024 | |
0.13.0 | 93 | 7/8/2024 | |
0.12.2 | 95 | 7/8/2024 | |
0.12.1 | 107 | 7/6/2024 | |
0.12.0 | 98 | 7/6/2024 | |
0.11.11 | 105 | 7/6/2024 | |
0.11.10 | 94 | 7/6/2024 | |
0.11.9 | 169 | 6/30/2024 | |
0.11.8 | 119 | 6/30/2024 | |
0.11.7 | 111 | 6/30/2024 | |
0.11.6 | 128 | 6/29/2024 | |
0.11.4 | 118 | 6/27/2024 | |
0.11.3 | 112 | 6/27/2024 | |
0.11.1 | 140 | 6/20/2024 | |
0.11.0 | 135 | 6/16/2024 | |
0.10.8 | 117 | 6/15/2024 | |
0.10.7 | 119 | 6/15/2024 | |
0.10.6 | 106 | 6/15/2024 | |
0.10.4 | 106 | 6/13/2024 | |
0.10.2 | 100 | 6/13/2024 | |
0.10.1 | 95 | 6/13/2024 | |
0.10.0 | 110 | 6/13/2024 | |
0.9.12 | 135 | 6/6/2024 | |
0.9.11 | 112 | 6/6/2024 | |
0.9.10 | 120 | 6/5/2024 | |
0.9.9 | 117 | 6/5/2024 | |
0.9.8 | 107 | 6/4/2024 | |
0.9.7 | 125 | 6/1/2024 | |
0.9.5 | 120 | 5/31/2024 | |
0.9.4 | 113 | 5/31/2024 | |
0.9.3 | 113 | 5/31/2024 | |
0.9.1 | 121 | 5/30/2024 | |
0.9.0 | 110 | 5/30/2024 | |
0.8.8 | 107 | 5/28/2024 | |
0.8.6 | 115 | 5/27/2024 | |
0.8.5 | 106 | 5/27/2024 | |
0.8.4 | 106 | 5/27/2024 | |
0.8.3 | 114 | 5/27/2024 | |
0.8.1 | 122 | 5/25/2024 | |
0.8.0 | 117 | 5/25/2024 | |
0.7.2 | 114 | 5/23/2024 | |
0.7.1 | 119 | 5/22/2024 | |
0.7.0 | 110 | 5/22/2024 | |
0.6.9 | 114 | 5/22/2024 | |
0.6.8 | 118 | 5/21/2024 | |
0.6.7 | 119 | 5/21/2024 | |
0.6.6 | 132 | 5/19/2024 | |
0.6.5 | 111 | 5/19/2024 | |
0.6.4 | 111 | 5/19/2024 | |
0.6.3 | 109 | 5/19/2024 | |
0.6.2 | 115 | 5/19/2024 | |
0.6.1 | 109 | 5/19/2024 | |
0.6.0 | 114 | 5/19/2024 | |
0.5.0 | 115 | 5/19/2024 | |
0.4.0 | 123 | 5/19/2024 | |
0.3.2 | 111 | 5/13/2024 | |
0.3.1 | 123 | 5/13/2024 | |
0.3.0 | 110 | 5/13/2024 | |
0.2.0 | 124 | 5/11/2024 | |
0.1.5 | 114 | 5/10/2024 | |
0.1.4 | 112 | 5/10/2024 | |
0.1.3 | 362 | 1/8/2024 | |
0.1.2 | 222 | 1/8/2024 | |
0.1.1 | 189 | 1/8/2024 | |
0.1.0-dev.37 | 87 | 1/8/2024 | |
0.1.0-dev.35 | 86 | 1/8/2024 | |
0.1.0-dev.34 | 74 | 1/8/2024 | |
0.1.0-dev.33 | 80 | 1/7/2024 | |
0.1.0-dev.10 | 138 | 12/6/2023 | |
0.1.0-dev.5 | 89 | 12/4/2023 | |
0.1.0-dev.4 | 93 | 11/27/2023 | |
0.1.0-dev.3 | 82 | 11/25/2023 |
⭐ Last 10 features:
- feat: Added Settings.UseRequiredKeyword. 2024-05-11
- feat: Added ability to use Newtonsoft.Json. 2024-05-11
- feat: Added CLI tool. 2024-05-11
- feat: Make Core lib multi-target. 2024-05-11
- feat: Added support for OpenAI.CreateModerationResponse. 2024-01-08
- feat: Added initial endpoints generation. 2024-01-08
- feat: New array is IList by default. 2023-12-22
- feat: Now NamingConvention.ConcatNames is default. 2023-12-22
- feat: Unified naming. 2023-12-22
- feat: Added NamingConvention. 2023-12-22
🐞 Last 10 bug fixes:
- fix: Fixed issue <> in xml docs. 2024-05-10
- fix: Added missing xml doc for AdditionalProperties. 2024-05-10
- fix: Released. 2024-05-10
- fix: Fixed issue with enum names with whitespace separator. 2024-05-10
- fix: Try to do models public. 2024-01-08
- fix: Try to use IsExternalInit. 2024-01-08
- fix: Try fixed version. 2024-01-08
- fix: Update dll paths in OpenApiGenerator project 2024-01-08
- fix: Try to use fixed assemblies. 2024-01-08
- fix: Commented NSwag code and packages. 2024-01-08