OpenApiGenerator.Core
0.2.0
See the version list below for details.
dotnet add package OpenApiGenerator.Core --version 0.2.0
NuGet\Install-Package OpenApiGenerator.Core -Version 0.2.0
<PackageReference Include="OpenApiGenerator.Core" Version="0.2.0" />
<PackageVersion Include="OpenApiGenerator.Core" Version="0.2.0" />
<PackageReference Include="OpenApiGenerator.Core" />
paket add OpenApiGenerator.Core --version 0.2.0
#r "nuget: OpenApiGenerator.Core, 0.2.0"
#:package OpenApiGenerator.Core@0.2.0
#addin nuget:?package=OpenApiGenerator.Core&version=0.2.0
#tool nuget:?package=OpenApiGenerator.Core&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:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Microsoft.OpenApi.Readers (>= 1.6.14)
- System.Collections.Immutable (>= 8.0.0)
-
.NETStandard 2.0
- Microsoft.OpenApi.Readers (>= 1.6.14)
- System.Collections.Immutable (>= 8.0.0)
-
net6.0
- Microsoft.OpenApi.Readers (>= 1.6.14)
- System.Collections.Immutable (>= 8.0.0)
-
net8.0
- Microsoft.OpenApi.Readers (>= 1.6.14)
- System.Collections.Immutable (>= 8.0.0)
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 | 248 | 9/9/2024 | |
| 0.22.6-dev.6 | 125 | 9/9/2024 | |
| 0.22.6-dev.4 | 114 | 9/7/2024 | |
| 0.22.6-dev.2 | 127 | 9/7/2024 | |
| 0.22.6-dev.1 | 104 | 9/7/2024 | |
| 0.22.5 | 223 | 9/7/2024 | |
| 0.22.4 | 171 | 9/7/2024 | |
| 0.22.3 | 173 | 9/7/2024 | |
| 0.22.2 | 184 | 9/7/2024 | |
| 0.22.1 | 170 | 9/7/2024 | |
| 0.22.0 | 183 | 9/7/2024 | |
| 0.21.1 | 175 | 9/6/2024 | |
| 0.21.0 | 179 | 9/6/2024 | |
| 0.20.2 | 189 | 8/31/2024 | |
| 0.20.1 | 174 | 8/31/2024 | |
| 0.20.0 | 201 | 8/30/2024 | |
| 0.19.0 | 202 | 8/30/2024 | |
| 0.18.0 | 178 | 8/29/2024 | |
| 0.17.1 | 194 | 8/28/2024 | |
| 0.17.0 | 218 | 8/28/2024 | |
| 0.16.4-dev.7 | 108 | 8/28/2024 | |
| 0.16.3 | 237 | 8/24/2024 | |
| 0.16.2 | 216 | 8/24/2024 | |
| 0.16.1 | 229 | 8/23/2024 | |
| 0.16.0 | 216 | 8/22/2024 | |
| 0.15.8 | 214 | 8/22/2024 | |
| 0.15.7 | 230 | 8/19/2024 | |
| 0.15.6 | 199 | 8/18/2024 | |
| 0.15.5 | 201 | 8/18/2024 | |
| 0.15.4 | 219 | 8/15/2024 | |
| 0.15.3 | 200 | 8/13/2024 | |
| 0.15.2 | 193 | 8/13/2024 | |
| 0.15.1 | 199 | 8/12/2024 | |
| 0.15.0 | 230 | 8/11/2024 | |
| 0.14.3 | 150 | 8/6/2024 | |
| 0.14.2 | 147 | 8/5/2024 | |
| 0.14.1 | 149 | 8/5/2024 | |
| 0.14.0 | 147 | 8/5/2024 | |
| 0.13.11 | 189 | 7/22/2024 | |
| 0.13.10 | 214 | 7/21/2024 | |
| 0.13.9 | 182 | 7/18/2024 | |
| 0.13.8 | 188 | 7/15/2024 | |
| 0.13.7 | 184 | 7/15/2024 | |
| 0.13.6 | 187 | 7/14/2024 | |
| 0.13.5 | 174 | 7/14/2024 | |
| 0.13.4 | 180 | 7/13/2024 | |
| 0.13.3 | 205 | 7/9/2024 | |
| 0.13.2 | 207 | 7/8/2024 | |
| 0.13.1 | 200 | 7/8/2024 | |
| 0.13.0 | 196 | 7/8/2024 | |
| 0.12.2 | 205 | 7/8/2024 | |
| 0.12.1 | 190 | 7/6/2024 | |
| 0.12.0 | 211 | 7/6/2024 | |
| 0.11.11 | 197 | 7/6/2024 | |
| 0.11.10 | 185 | 7/6/2024 | |
| 0.11.9 | 210 | 6/30/2024 | |
| 0.11.8 | 203 | 6/30/2024 | |
| 0.11.7 | 197 | 6/30/2024 | |
| 0.11.6 | 195 | 6/29/2024 | |
| 0.11.4 | 208 | 6/27/2024 | |
| 0.11.3 | 199 | 6/27/2024 | |
| 0.11.1 | 215 | 6/20/2024 | |
| 0.11.0 | 205 | 6/16/2024 | |
| 0.10.8 | 191 | 6/15/2024 | |
| 0.10.7 | 194 | 6/15/2024 | |
| 0.10.6 | 192 | 6/15/2024 | |
| 0.10.4 | 191 | 6/13/2024 | |
| 0.10.2 | 202 | 6/13/2024 | |
| 0.10.1 | 175 | 6/13/2024 | |
| 0.10.0 | 192 | 6/13/2024 | |
| 0.9.12 | 186 | 6/6/2024 | |
| 0.9.11 | 207 | 6/6/2024 | |
| 0.9.10 | 190 | 6/5/2024 | |
| 0.9.9 | 181 | 6/5/2024 | |
| 0.9.8 | 183 | 6/4/2024 | |
| 0.9.7 | 199 | 6/1/2024 | |
| 0.9.5 | 209 | 5/31/2024 | |
| 0.9.4 | 216 | 5/31/2024 | |
| 0.9.3 | 195 | 5/31/2024 | |
| 0.9.1 | 196 | 5/30/2024 | |
| 0.9.0 | 196 | 5/30/2024 | |
| 0.8.8 | 217 | 5/28/2024 | |
| 0.8.6 | 201 | 5/27/2024 | |
| 0.8.5 | 195 | 5/27/2024 | |
| 0.8.4 | 217 | 5/27/2024 | |
| 0.8.3 | 195 | 5/27/2024 | |
| 0.8.1 | 231 | 5/25/2024 | |
| 0.8.0 | 210 | 5/25/2024 | |
| 0.7.2 | 199 | 5/23/2024 | |
| 0.7.1 | 197 | 5/22/2024 | |
| 0.7.0 | 199 | 5/22/2024 | |
| 0.6.9 | 188 | 5/22/2024 | |
| 0.6.8 | 193 | 5/21/2024 | |
| 0.6.7 | 209 | 5/21/2024 | |
| 0.6.6 | 192 | 5/19/2024 | |
| 0.6.5 | 187 | 5/19/2024 | |
| 0.6.4 | 185 | 5/19/2024 | |
| 0.6.3 | 192 | 5/19/2024 | |
| 0.6.2 | 200 | 5/19/2024 | |
| 0.6.1 | 200 | 5/19/2024 | |
| 0.6.0 | 196 | 5/19/2024 | |
| 0.5.0 | 201 | 5/19/2024 | |
| 0.4.0 | 195 | 5/19/2024 | |
| 0.3.2 | 197 | 5/13/2024 | |
| 0.3.1 | 186 | 5/13/2024 | |
| 0.3.0 | 220 | 5/13/2024 | |
| 0.2.0 | 207 | 5/11/2024 | |
| 0.1.5 | 216 | 5/10/2024 | |
| 0.1.4 | 206 | 5/10/2024 | |
| 0.1.3 | 223 | 4/5/2024 |
⭐ 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