Skip to content

Commit

Permalink
Merge pull request #1054 from christianhelle/kiota-v1.21.0
Browse files Browse the repository at this point in the history
Microsoft Kiota v1.21.0
  • Loading branch information
christianhelle authored Dec 5, 2024
2 parents 3c3ffd1 + 738e243 commit d18af5f
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Custom tools let you associate a tool with an item in a project and run that too
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**

- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.20.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: `generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`. 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 -> Kiota and setting **Generate Multiple Files** to **true**
- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.21.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: `generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`. 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 -> Kiota and setting **Generate Multiple Files** to **true**

- ***SwaggerCodeGenerator*** - Generates a single file C# REST API Client using **Swagger Codegen CLI v3.0.34**.
The output file is the result of merging all the files generated using the Swagger Codegen CLI tool with:
Expand Down Expand Up @@ -306,7 +306,7 @@ Options:
Commands:
autorest AutoRest (v3.0.0-beta.20210504.2)
kiota Microsoft Kiota (v1.20.0)
kiota Microsoft Kiota (v1.21.0)
nswag NSwag (v14.2.0)
openapi OpenAPI Generator (v7.10.0)
refitter Refitter (v1.4.1)
Expand Down
2 changes: 1 addition & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Options:

Commands:
autorest AutoRest (v3.0.0-beta.20210504.2)
kiota Microsoft Kiota (v1.20.0)
kiota Microsoft Kiota (v1.21.0)
nswag NSwag (v14.2.0)
openapi OpenAPI Generator (v7.10.0)
refitter Refitter (v1.4.1)
Expand Down
2 changes: 1 addition & 1 deletion docs/Marketplace.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA
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**

- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.20.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: `generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`. 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 -> Kiota and setting **Generate Multiple Files** to **true**
- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.21.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: `generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`. 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 -> Kiota and setting **Generate Multiple Files** to **true**

- ***SwaggerCodeGenerator*** - Generates a single file C# REST API Client using **Swagger Codegen CLI v3.0.34**.
The output file is the result of merging all the files generated using the Swagger Codegen CLI tool with:
Expand Down
2 changes: 1 addition & 1 deletion docs/Marketplace2022.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA
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**

- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.20.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: `generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`. 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 -> Kiota and setting **Generate Multiple Files** to **true**
- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.21.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator. The output file is the result of merging all the files generated using the Kiota dotnet tool with: `generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`. 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 -> Kiota and setting **Generate Multiple Files** to **true**

- ***SwaggerCodeGenerator*** - Generates a single file C# REST API Client using **Swagger Codegen CLI v3.0.34**.
The output file is the result of merging all the files generated using the Swagger Codegen CLI tool with:
Expand Down
2 changes: 1 addition & 1 deletion docs/VisualStudioForMac.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ A collection of Visual Studio C# custom tool code generators for Swagger / OpenA
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`

- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.20.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator.
- ***KiotaCodeGenerator*** - Generates a single file C# REST API Client using the Microsoft project **[Kiota v1.21.0](https://learn.microsoft.com/en-us/openapi/kiota/)** generator.
The output file is the result of merging all the files generated using the Kiota dotnet tool with:
`generate -l CSharp -d [swagger file] -o [output file] -n [default namespace]`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Rapicgen.CLI.Commands.CSharp;

[Command("kiota", Description = "Microsoft Kiota (v1.20.0)")]
[Command("kiota", Description = "Microsoft Kiota (v1.21.0)")]
public class KiotaCommand : CodeGeneratorCommand, IKiotaOptions
{
private readonly IProcessLauncher processLauncher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void InstallKiota_Invokes_ProcessLauncher(
mock.Verify(
c => c.Start(
It.IsAny<string>(),
"tool install --global Microsoft.OpenApi.Kiota --version 1.20.0",
"tool install --global Microsoft.OpenApi.Kiota --version 1.21.0",
null));
}

Expand All @@ -113,7 +113,7 @@ public void InstallKiota_Ignores_ProcessLauncherException_For_Already_Installed(
.Throws(
new ProcessLaunchException(
"dotnet",
"tool install --global Microsoft.OpenApi.Kiota --version 1.20.0",
"tool install --global Microsoft.OpenApi.Kiota --version 1.21.0",
null,
string.Empty,
"Tool 'microsoft.openapi.kiota' is already installed."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public string GenerateCode(IProgressReporter? pGenerateProgress)
return GeneratedCode.PrefixAutogeneratedCodeHeader(
string.Empty,
"Kiota",
"v1.20.0");
"v1.21.0");
}

pGenerateProgress?.Progress(30);
Expand Down Expand Up @@ -87,7 +87,7 @@ public string GenerateCode(IProgressReporter? pGenerateProgress)
return GeneratedCode.PrefixAutogeneratedCodeHeader(
output,
"Kiota",
"v1.20.0");
"v1.21.0");
}

private void RunKiotaGenerate(string outputFolder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void InstallKiota()
Logger.Instance.WriteLine(error);
}
});
if (!kiotaVersion.StartsWith("1.20.0"))
if (!kiotaVersion.StartsWith("1.21.0"))
{
//older or newer? i guess this should be handled.
}
Expand All @@ -80,7 +80,7 @@ public void InstallKiota()
{
//if command doesn't exist Win32Exception is thrown.
command = PathProvider.GetDotNetPath();
arguments = "tool install --global Microsoft.OpenApi.Kiota --version 1.20.0";
arguments = "tool install --global Microsoft.OpenApi.Kiota --version 1.21.0";
using var context = new DependencyContext(command, $"{command} {arguments}");
processLauncher.Start(command, arguments);
context.Succeeded();
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 @@ -44,7 +44,7 @@
</Button>
<Button guid="guidPackageCmdSet" id="KiotaCodeGeneratorCustomToolSetter" priority="0x0102" type="Button">
<Strings>
<ButtonText>Generate with Microsoft Kiota (v1.20.0)</ButtonText>
<ButtonText>Generate with Microsoft Kiota (v1.21.0)</ButtonText>
</Strings>
</Button>
<Button guid="guidPackageCmdSet" id="SwaggerCodeGeneratorCustomToolSetter" priority="0x0103" type="Button">
Expand Down Expand Up @@ -104,7 +104,7 @@
</Button>
<Button guid="guidNewRestApiClientCmdSet" id="GenerateWithKiota" priority="0x0103" type="Button">
<Strings>
<ButtonText>Generate with Microsoft Kiota (v1.20.0)</ButtonText>
<ButtonText>Generate with Microsoft Kiota (v1.21.0)</ButtonText>
</Strings>
</Button>
<Button guid="guidNewRestApiClientCmdSet" id="GenerateWithSwagger" priority="0x0104" type="Button">
Expand Down
4 changes: 2 additions & 2 deletions src/VSIX/ApiClientCodeGen.VSIX/VSCommandTable.vsct
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</Button>
<Button guid="guidPackageCmdSet" id="KiotaCodeGeneratorCustomToolSetter" priority="0x0102" type="Button">
<Strings>
<ButtonText>Generate with Microsoft Kiota (v1.20.0)</ButtonText>
<ButtonText>Generate with Microsoft Kiota (v1.21.0)</ButtonText>
</Strings>
</Button>
<Button guid="guidPackageCmdSet" id="SwaggerCodeGeneratorCustomToolSetter" priority="0x0103" type="Button">
Expand Down Expand Up @@ -104,7 +104,7 @@
</Button>
<Button guid="guidNewRestApiClientCmdSet" id="GenerateWithKiota" priority="0x0103" type="Button">
<Strings>
<ButtonText>Generate with Microsoft Kiota (v1.20.0)</ButtonText>
<ButtonText>Generate with Microsoft Kiota (v1.21.0)</ButtonText>
</Strings>
</Button>
<Button guid="guidNewRestApiClientCmdSet" id="GenerateWithSwagger" priority="0x0104" type="Button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
defaultHandler="ApiClientCodeGen.VSMac.Commands.Handlers.AddNewOpenApiCommandHandler" />

<Command id = "ApiClientCodeGen.VSMac.Commands.AddToProject.Kiota"
_label = "Generate with Kiota (v1.20.0)"
_label = "Generate with Kiota (v1.21.0)"
defaultHandler="ApiClientCodeGen.VSMac.Commands.Handlers.AddNewKiotaCommandHandler" />

<Command id = "ApiClientCodeGen.VSMac.Commands.AddToProject.Refitter"
Expand Down Expand Up @@ -68,7 +68,7 @@
defaultHandler="ApiClientCodeGen.VSMac.Commands.Handlers.GenerateOpenApiCommandHandler" />

<Command id = "ApiClientCodeGen.VSMac.Commands.GenerateCode.Kiota"
_label = "Generate with Kiota (v1.20.0)"
_label = "Generate with Kiota (v1.21.0)"
defaultHandler="ApiClientCodeGen.VSMac.Commands.Handlers.GenerateKiotaCommandHandler" />

<Command id = "ApiClientCodeGen.VSMac.Commands.GenerateCode.Refitter"
Expand Down

0 comments on commit d18af5f

Please sign in to comment.