Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Custom tools let you associate a tool with an item in a project and run that too

- ***NSwagCodeGenerator*** - Generates a single file C# REST API Client using the [NSwag.CodeGeneration.CSharp](https://github.com/RSuter/NSwag/wiki/CSharpClientGenerator) [nuget package](https://www.nuget.org/packages/NSwag.CodeGeneration.CSharp/) **v14.7.1**

- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.22.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.22.0)**.
- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.23.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.23.0)**.
The output file is the result of merging all the files generated using the OpenAPI Generator tool with:
`generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite`. It is possible to configure the OpenAPI Generator to generate multiple files which will be placed at the same path as the OpenAPI specifications document that was used to generate code, this is done under Tools -> REST API Client Code Generator -> OpenAPI Generator and setting **Generate Multiple Files** to **true**

Expand Down Expand Up @@ -363,7 +363,7 @@ Options:
Commands:
csharp Generate C# API clients
jmeter Generate Apache JMeter test plans
openapi-generator Generate code using OpenAPI Generator (v7.22.0).
openapi-generator Generate code using OpenAPI Generator (v7.23.0).
See supported generators at https://openapi-generator.tech/docs/generators/
typescript Generate TypeScript API clients

Expand Down Expand Up @@ -402,7 +402,7 @@ Commands:
autorest AutoRest (v3.0.0-beta.20210504.2)
kiota Microsoft Kiota (v1.32.2)
nswag NSwag (v14.7.1)
openapi OpenAPI Generator (v7.22.0)
openapi OpenAPI Generator (v7.23.0)
refitter Refitter (v2.0.0)
swagger Swagger Codegen CLI (v3.0.34)

Expand Down
4 changes: 2 additions & 2 deletions docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Options:
Commands:
csharp Generate C# API clients
jmeter Generate Apache JMeter test plans
openapi-generator Generate code using OpenAPI Generator (v7.22.0).
openapi-generator Generate code using OpenAPI Generator (v7.23.0).
See supported generators at https://openapi-generator.tech/docs/generators/
typescript Generate TypeScript API clients

Expand Down Expand Up @@ -72,7 +72,7 @@ Commands:
autorest AutoRest (Deprecated - v3.0.0-beta.20210504.2, retires July 1, 2026 — use NSwag, Refit, or Kiota)
kiota Microsoft Kiota (v1.32.2)
nswag NSwag (v14.7.1)
openapi OpenAPI Generator (v7.22.0)
openapi OpenAPI Generator (v7.23.0)
refitter Refitter (v2.0.0)
swagger Swagger Codegen CLI (v3.0.34)

Expand Down
2 changes: 1 addition & 1 deletion docs/Marketplace.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA

- ***NSwagCodeGenerator*** - Generates a single file C# REST API Client using the [NSwag.CodeGeneration.CSharp](https://github.com/RSuter/NSwag/wiki/CSharpClientGenerator) [nuget package](https://www.nuget.org/packages/NSwag.CodeGeneration.CSharp/) **v14.7.1**

- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.22.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.22.0)**.
- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.23.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.23.0)**.
The output file is the result of merging all the files generated using the OpenAPI Generator tool with:
`generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite`. It is possible to configure the OpenAPI Generator to generate multiple files which will be placed at the same path as the OpenAPI specifications document that was used to generate code, this is done under Tools -> REST API Client Code Generator -> OpenAPI Generator and setting **Generate Multiple Files** to **true**

Expand Down
2 changes: 1 addition & 1 deletion docs/Marketplace2022.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA

- ***NSwagCodeGenerator*** - Generates a single file C# REST API Client using the [NSwag.CodeGeneration.CSharp](https://github.com/RSuter/NSwag/wiki/CSharpClientGenerator) [nuget package](https://www.nuget.org/packages/NSwag.CodeGeneration.CSharp/) **v14.7.1**

- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.22.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.22.0)**.
- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.23.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.23.0)**.
The output file is the result of merging all the files generated using the OpenAPI Generator tool with:
`generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite`. It is possible to configure the OpenAPI Generator to generate multiple files which will be placed at the same path as the OpenAPI specifications document that was used to generate code, this is done under Tools -> REST API Client Code Generator -> OpenAPI Generator and setting **Generate Multiple Files** to **true**

Expand Down
2 changes: 1 addition & 1 deletion docs/VisualStudioForMac.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA

- ***NSwagCodeGenerator*** - Generates a single file C# REST API Client using the [NSwag.CodeGeneration.CSharp](https://github.com/RSuter/NSwag/wiki/CSharpClientGenerator) [nuget package](https://www.nuget.org/packages/NSwag.CodeGeneration.CSharp/) **v14.7.1**

- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.22.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.22.0)**.
- ***OpenApiCodeGenerator*** - Generates a single file C# REST API Client using **[OpenAPI Generator v7.23.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.23.0)**.
The output file is the result of merging all the files generated using the OpenAPI Generator tool with:
`generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[default namespace] --skip-overwrite`

Expand Down
4 changes: 2 additions & 2 deletions docs/website/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h4>Main Help Screen</h4>
Commands:
csharp Generate C# API clients
jmeter Generate Apache JMeter test plans
openapi-generator Generate code using OpenAPI Generator (v7.22.0).
openapi-generator Generate code using OpenAPI Generator (v7.23.0).
See supported generators at https://openapi-generator.tech/docs/generators/
typescript Generate TypeScript API clients

Expand All @@ -149,7 +149,7 @@ <h4>C# Generator Help</h4>
autorest AutoRest (v3.0.0-beta.20210504.2)
kiota Microsoft Kiota (v1.32.2)
nswag NSwag (v14.7.1)
openapi OpenAPI Generator (v7.22.0)
openapi OpenAPI Generator (v7.23.0)
refitter Refitter (v2.0.0)
swagger Swagger Codegen CLI (v3.0.34)

Expand Down
2 changes: 1 addition & 1 deletion docs/website/features.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h4>Key Features:</h4>

<div class="card">
<h3>OpenApiCodeGenerator</h3>
<p><strong>Version:</strong> v7.22.0</p>
<p><strong>Version:</strong> v7.23.0</p>
<p>Generates a single file C# REST API Client using OpenAPI Generator. The output file merges all generated files using the command: <code>generate -g csharp --input-spec [swagger file] --output [output file] -DapiTests=false -DmodelTests=false -DpackageName=[namespace] --skip-overwrite</code></p>
<div class="config-section">
<h4>Configuration Options:</h4>
Expand Down
2 changes: 1 addition & 1 deletion docs/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h3>NSwag</h3>

<div class="card">
<h3>OpenAPI Generator</h3>
<p><strong>Version:</strong> v7.22.0</p>
<p><strong>Version:</strong> v7.23.0</p>
<p>Uses OpenAPI Generator to create comprehensive client libraries with extensive customization options. Supports multiple output formats and advanced configuration through additional properties.</p>
<p><strong>Dependencies:</strong> RestSharp, JsonSubTypes, Polly, Newtonsoft.Json</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ This project uses Java-based tools for generating REST API client code from Open

**OpenAPI Generator** is a Java-based code generation tool that creates client libraries, server stubs, and API documentation from OpenAPI specifications.

- **Current Version**: 7.22.0 (latest supported version)
- **Current Version**: 7.23.0 (latest supported version)
- **Distribution**: JAR file (`openapi-generator-cli-{version}.jar`)
- **Download Location**: Maven Central Repository
- **Repository**: https://github.com/OpenAPITools/openapi-generator
- **Java Requirement**: Java 11 or higher

**Usage in this project:**
```bash
java -jar openapi-generator-cli-7.22.0.jar generate \
java -jar openapi-generator-cli-7.23.0.jar generate \
--generator-name csharp \
--input-spec [swagger file] \
--output [output directory] \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public void IsBetween_ReturnsExpectedResult(
}

[Theory]
[InlineData(OpenApiSupportedVersion.V7220, true)] // Latest version
[InlineData(OpenApiSupportedVersion.V7230, true)] // Latest version
[InlineData(OpenApiSupportedVersion.V7220, false)] // Not latest version
[InlineData(OpenApiSupportedVersion.V7210, false)] // Not latest version
[InlineData(OpenApiSupportedVersion.V7200, false)] // Not latest version
[InlineData(OpenApiSupportedVersion.V7190, false)] // Not latest version
Expand All @@ -84,7 +85,8 @@ public void IsLatest_ReturnsExpectedResult(
[InlineData(OpenApiSupportedVersion.V7170, true)] // Older than latest version
[InlineData(OpenApiSupportedVersion.V7120, true)] // Older than latest version
[InlineData(OpenApiSupportedVersion.V7070, true)] // Older than latest version
[InlineData(OpenApiSupportedVersion.V7220, false)] // Equal to latest version
[InlineData(OpenApiSupportedVersion.V7220, true)] // Older than latest version
[InlineData(OpenApiSupportedVersion.V7230, false)] // Equal to latest version
public void IsOlderThanLatest_ReturnsExpectedResult(
OpenApiSupportedVersion currentVersion,
bool expectedResult)
Expand All @@ -98,6 +100,7 @@ public void IsOlderThanLatest_ReturnsExpectedResult(

[Theory]
[InlineData(OpenApiSupportedVersion.Latest, 0)]
[InlineData(OpenApiSupportedVersion.V7230, 7230)]
[InlineData(OpenApiSupportedVersion.V7220, 7220)]
[InlineData(OpenApiSupportedVersion.V7210, 7210)]
[InlineData(OpenApiSupportedVersion.V7140, 7140)]
Expand All @@ -115,7 +118,8 @@ public void EnumValues_MatchExpectedIntValues(OpenApiSupportedVersion version, i
}

[Theory]
[InlineData(OpenApiSupportedVersion.Latest, OpenApiSupportedVersion.V7220)]
[InlineData(OpenApiSupportedVersion.Latest, OpenApiSupportedVersion.V7230)]
[InlineData(OpenApiSupportedVersion.V7230, OpenApiSupportedVersion.V7230)]
[InlineData(OpenApiSupportedVersion.V7220, OpenApiSupportedVersion.V7220)]
[InlineData(OpenApiSupportedVersion.V7210, OpenApiSupportedVersion.V7210)]
[InlineData(OpenApiSupportedVersion.V7200, OpenApiSupportedVersion.V7200)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ public static class OpenApiGeneratorVersions

private static readonly OpenApiGeneratorVersion[] Versions =
[
new(
"7.23.0",
$"{DownloadUrlPrefix}/7.23.0/openapi-generator-cli-7.23.0.jar",
"4f4bb6d9c966a1e6353820b6e494a24269e9f2a5",
"362827fb72055ecd18de886bae04bded"
),
new(
"7.22.0",
$"{DownloadUrlPrefix}/7.22.0/openapi-generator-cli-7.22.0.jar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ namespace Rapicgen.Core.Options.OpenApiGenerator;
public enum OpenApiSupportedVersion
{
/// <summary>
/// Default value that represents the latest version (maps to <see cref="V7220"/>)
/// Default value that represents the latest version (maps to <see cref="V7230"/>)
/// </summary>
[Description("Latest")]
Latest = 0,

[Description("7.23.0")]
V7230 = 7230,
[Description("7.22.0")]
V7220 = 7220,
[Description("7.21.0")]
Expand Down Expand Up @@ -51,5 +53,5 @@ public static class OpenApiSupportedVersionExtensions
/// <summary>
/// Gets the latest supported version of OpenAPI Generator
/// </summary>
public static OpenApiSupportedVersion Latest => OpenApiSupportedVersion.V7220;
public static OpenApiSupportedVersion Latest => OpenApiSupportedVersion.V7230;
}
6 changes: 3 additions & 3 deletions src/Core/ApiClientCodeGen.Core/Resource.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Core/ApiClientCodeGen.Core/Resource.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="OpenApiGenerator_DownloadUrl" xml:space="preserve">
<value>https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.22.0/openapi-generator-cli-7.22.0.jar</value>
<value>https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.23.0/openapi-generator-cli-7.23.0.jar</value>
</data>
<data name="OpenApiGenerator_MD5" xml:space="preserve">
<value>24803a056bc36a4f8824612fb31c8133</value>
<value>362827fb72055ecd18de886bae04bded</value>
</data>
<data name="OpenApiGenerator_SHA1" xml:space="preserve">
<value>aa154752b82c9b84151cd4998ce2a86ed21f5bd3</value>
<value>4f4bb6d9c966a1e6353820b6e494a24269e9f2a5</value>
</data>
<data name="SwaggerCodegenCli_DownloadUrl" xml:space="preserve">
<value>https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.34/swagger-codegen-cli-3.0.34.jar</value>
Expand Down
2 changes: 1 addition & 1 deletion src/IntelliJ/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<group id="ApiClientCodeGen.CSharpGroup" text="C#" popup="true">
<action id="ApiClientCodeGen.CSharp.NSwag" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorNSwagAction" text="NSwag (v14.7.1)" description="Generate C# client with NSwag (v14.7.1)"/>
<action id="ApiClientCodeGen.CSharp.Refitter" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorRefitterAction" text="Refitter (v2.0.0)" description="Generate C# client with Refitter (v2.0.0)"/>
<action id="ApiClientCodeGen.CSharp.OpenAPI" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorOpenApiAction" text="OpenAPI Generator (v7.22.0)" description="Generate C# client with OpenAPI Generator (v7.22.0)"/>
<action id="ApiClientCodeGen.CSharp.OpenAPI" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorOpenApiAction" text="OpenAPI Generator (v7.23.0)" description="Generate C# client with OpenAPI Generator (v7.23.0)"/>
<action id="ApiClientCodeGen.CSharp.Kiota" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorKiotaAction" text="Microsoft Kiota (v1.32.2)" description="Generate C# client with Microsoft Kiota (v1.32.2)"/>
<action id="ApiClientCodeGen.CSharp.Swagger" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorSwaggerAction" text="Swagger Codegen (v3.0.34 - Outdated)" description="Generate C# client with Swagger Codegen CLI (v3.0.34 - Outdated)"/>
<action id="ApiClientCodeGen.CSharp.AutoRest" class="com.christianhelle.apiclientcodegen.actions.CSharpGeneratorAutoRestAction" text="AutoRest (Deprecated)" description="Generate C# client with AutoRest (Deprecated)"/>
Expand Down
2 changes: 1 addition & 1 deletion src/VSCode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"command": "restApiClientCodeGenerator.openapi",
"title": "Generate C# Client with OpenAPI Generator (v7.22.0)"
"title": "Generate C# Client with OpenAPI Generator (v7.23.0)"
},
{
"command": "restApiClientCodeGenerator.kiota",
Expand Down
4 changes: 2 additions & 2 deletions src/VSIX/ApiClientCodeGen.VSIX.Dev17/VSCommandTable.vsct
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</Button>
<Button guid="guidPackageCmdSet" id="OpenApiCodeGeneratorCustomToolSetter" priority="0x0101" type="Button">
<Strings>
<ButtonText>Generate with OpenAPI Generator (v7.22.0)</ButtonText>
<ButtonText>Generate with OpenAPI Generator (v7.23.0)</ButtonText>
</Strings>
</Button>
<Button guid="guidPackageCmdSet" id="KiotaCodeGeneratorCustomToolSetter" priority="0x0102" type="Button">
Expand Down Expand Up @@ -99,7 +99,7 @@
</Button>
<Button guid="guidNewRestApiClientCmdSet" id="GenerateWithOpenApi" priority="0x0102" type="Button">
<Strings>
<ButtonText>Generate with OpenAPI Generator (v7.22.0)</ButtonText>
<ButtonText>Generate with OpenAPI Generator (v7.23.0)</ButtonText>
</Strings>
</Button>
<Button guid="guidNewRestApiClientCmdSet" id="GenerateWithKiota" priority="0x0103" type="Button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"RefitterSettingsCommand.DisplayName": "Generate Refitter output",
"NSwagCommand.DisplayName": "Generate with NSwag (v14.7.1)",
"NSwagStudioCommand.DisplayName": "Generate NSwag Studio output",
"OpenApiGeneratorCommand.DisplayName": "Generate with OpenAPI Generator (v7.22.0)",
"OpenApiGeneratorCommand.DisplayName": "Generate with OpenAPI Generator (v7.23.0)",
"KiotaCommand.DisplayName": "Generate with Microsoft Kiota (v1.32.1)",
"SwaggerCommand.DisplayName": "Generate with Swagger (v3.0.34 - Outdated)",
"AutoRestCommand.DisplayName": "Generate with AutoRest (Deprecated)",
Expand Down Expand Up @@ -134,6 +134,11 @@
"Settings.OpenApi.Version.DisplayName": "Version",
"Settings.OpenApi.Version.Description": "The version of the generator to use",
"Settings.OpenApi.Version.Latest": "Latest",
"Settings.OpenApi.Version.V7230": "7.23.0",
"Settings.OpenApi.Version.V7220": "7.22.0",
"Settings.OpenApi.Version.V7210": "7.21.0",
"Settings.OpenApi.Version.V7200": "7.20.0",
"Settings.OpenApi.Version.V7190": "7.19.0",
"Settings.OpenApi.Version.V7180": "7.18.0",
"Settings.OpenApi.Version.V7170": "7.17.0",
"Settings.OpenApi.Version.V7160": "7.16.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ internal static class OpenApiGeneratorSettings
OpenApiGeneratorCategory,
[
new EnumSettingEntry("Latest", "%Settings.OpenApi.Version.Latest%"),
new EnumSettingEntry("V7230", "%Settings.OpenApi.Version.V7230%"),
new EnumSettingEntry("V7220", "%Settings.OpenApi.Version.V7220%"),
new EnumSettingEntry("V7210", "%Settings.OpenApi.Version.V7210%"),
new EnumSettingEntry("V7200", "%Settings.OpenApi.Version.V7200%"),
new EnumSettingEntry("V7190", "%Settings.OpenApi.Version.V7190%"),
new EnumSettingEntry("V7180", "%Settings.OpenApi.Version.V7180%"),
new EnumSettingEntry("V7170", "%Settings.OpenApi.Version.V7170%"),
new EnumSettingEntry("V7160", "%Settings.OpenApi.Version.V7160%"),
Expand Down
Loading
Loading