diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7d85db6..48633cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -50,10 +50,16 @@ jobs: with: dotnet-version: '8.0.x' + - name: Set OpenAPI Generator Version + run: | + OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json) + echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV + shell: bash + - name: Generate SDK with Updated Version uses: Bandwidth/generate-sdk-action@v4.0.0 with: - openapi-generator-version: 7.7.0 + openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }} language: csharp additional-properties: --additional-properties=packageVersion=$RELEASE_VERSION diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 6be4470..7f7322c 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{696BABC6-8949-4785-B6CC-B337EE7A1998}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{EA879785-5633-4755-ABF8-7CAEE38F2A75}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {696BABC6-8949-4785-B6CC-B337EE7A1998}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {696BABC6-8949-4785-B6CC-B337EE7A1998}.Debug|Any CPU.Build.0 = Debug|Any CPU - {696BABC6-8949-4785-B6CC-B337EE7A1998}.Release|Any CPU.ActiveCfg = Release|Any CPU - {696BABC6-8949-4785-B6CC-B337EE7A1998}.Release|Any CPU.Build.0 = Release|Any CPU + {EA879785-5633-4755-ABF8-7CAEE38F2A75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EA879785-5633-4755-ABF8-7CAEE38F2A75}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EA879785-5633-4755-ABF8-7CAEE38F2A75}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EA879785-5633-4755-ABF8-7CAEE38F2A75}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index c45326d..1d848c2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Bandwidth's Communication APIs This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- SDK version: 1.0.0-dev +- SDK version: 1.0.0 - Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com) diff --git a/openapi-config.yml b/openapi-config.yml index 2f8af35..eb60951 100644 --- a/openapi-config.yml +++ b/openapi-config.yml @@ -1,5 +1,4 @@ apiName: Bandwidth packageName: Bandwidth.Standard packageTags: Bandwidth -packageVersion: 1.0.0 targetFramework: netstandard2.0 diff --git a/src/Bandwidth.Standard/Client/Configuration.cs b/src/Bandwidth.Standard/Client/Configuration.cs index b23938d..05daddb 100644 --- a/src/Bandwidth.Standard/Client/Configuration.cs +++ b/src/Bandwidth.Standard/Client/Configuration.cs @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.0.0-dev"; + public const string Version = "1.0.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0-dev/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp"); BasePath = "http://localhost"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -1004,7 +1004,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 1.0.0\n"; - report += " SDK Package Version: 1.0.0-dev\n"; + report += " SDK Package Version: 1.0.0\n"; return report; }