Skip to content

Commit

Permalink
Merge branch 'RicoSuter:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
soligen2010 authored Jun 26, 2024
2 parents d5d4a15 + 8af0c71 commit 3207ff2
Show file tree
Hide file tree
Showing 31 changed files with 61 additions and 48 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
run: |
echo "Adding GNU tar to PATH"
echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.423
- uses: actions/checkout@v3
- name: 'Run: Compile, Test, Pack, Publish'
run: ./build.cmd Compile Test Pack Publish
Expand Down Expand Up @@ -72,6 +76,10 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.423
- uses: actions/checkout@v3
- name: 'Run: Compile, Test, Pack, Publish'
run: ./build.cmd Compile Test Pack Publish
Expand All @@ -84,6 +92,10 @@ jobs:
name: macos-latest
runs-on: macos-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.423
- uses: actions/checkout@v3
- name: 'Run: Compile, Test, Pack, Publish'
run: ./build.cmd Compile Test Pack Publish
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
run: |
echo "Adding GNU tar to PATH"
echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.423
- uses: actions/checkout@v3
- name: 'Run: Compile, Test, Pack'
run: ./build.cmd Compile Test Pack
Expand Down Expand Up @@ -65,13 +69,21 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.423
- uses: actions/checkout@v3
- name: 'Run: Compile, Test, Pack'
run: ./build.cmd Compile Test Pack
macos-latest:
name: macos-latest
runs-on: macos-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.423
- uses: actions/checkout@v3
- name: 'Run: Compile, Test, Pack'
run: ./build.cmd Compile Test Pack
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>14.0.7</VersionPrefix>
<VersionPrefix>14.0.8</VersionPrefix>

<Authors>Rico Suter</Authors>
<Copyright>Copyright © Rico Suter, 2023</Copyright>
Expand Down
6 changes: 2 additions & 4 deletions build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ protected override GitHubActionsJob GetJobs(GitHubActionsImage image, IReadOnlyC
var newSteps = new List<GitHubActionsStep>(job.Steps);

// only need to list the ones that are missing from default image
/*
newSteps.Insert(0, new GitHubActionsSetupDotNetStep(new[]
newSteps.Insert(0, new GitHubActionsSetupDotNetStep(new[]
{
"8.0.100"
"6.0.423"
}));
*/

var onWindows = image.ToString().StartsWith("windows", StringComparison.OrdinalIgnoreCase);
if (onWindows)
Expand Down
12 changes: 4 additions & 8 deletions src/NSwag.AspNet.Owin/SwaggerUi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,17 @@
});

if ("{ClientId}") {
const oAuthConfig = {
var clientSecret = "{ClientSecret}";
ui.initOAuth({
clientId: "{ClientId}",
clientSecret: clientSecret ? clientSecret : undefined,
realm: "{Realm}",
appName: "{AppName}",
scopeSeparator: "{ScopeSeparator}",
scopes: {Scopes},
additionalQueryStringParams: {AdditionalQueryStringParameters},
usePkceWithAuthorizationCodeGrant: {UsePkceWithAuthorizationCodeGrant}
};

if (!{UsePkceWithAuthorizationCodeGrant}) {
oAuthConfig.clientSecret = "{ClientSecret}";
}

ui.initOAuth(oAuthConfig);
});
}

window.ui = ui;
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.AspNet.Owin/SwaggerUi/swagger-ui-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/NSwag.AspNet.Owin/SwaggerUi/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNet.Owin/SwaggerUi/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNet.Owin/SwaggerUi/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.3" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.3" />
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.0" />
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.AspNetCore/SwaggerUi/swagger-ui-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/NSwag.AspNetCore/SwaggerUi/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi/swagger-ui.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NJsonSchema.CodeGeneration.CSharp" Version="11.0.0" />
<PackageReference Include="NJsonSchema.CodeGeneration.CSharp" Version="11.0.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% if parameter.IsDateTimeArray -%}
for (var i = 0; i < {{ parameter.VariableName }}.Length; i++)
for (var i = 0; i < {{ parameter.VariableName }}.Count(); i++)
{
if (i > 0) urlBuilder_.Append(',');
urlBuilder_.Append(System.Uri.EscapeDataString({{ parameter.VariableName }}[i].ToString("{{ ParameterDateTimeFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
}
{% elsif parameter.IsDateArray -%}
for (var i = 0; i < {{ parameter.VariableName }}.Length; i++)
for (var i = 0; i < {{ parameter.VariableName }}.Count(); i++)
{
if (i > 0) urlBuilder_.Append(',');
urlBuilder_.Append(System.Uri.EscapeDataString({{ parameter.VariableName }}[i].ToString("{{ ParameterDateFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
Expand All @@ -15,11 +15,11 @@ urlBuilder_.Append(System.Uri.EscapeDataString({{ parameter.VariableName }}.ToSt
{% elsif parameter.IsDate -%}
urlBuilder_.Append(System.Uri.EscapeDataString({{ parameter.VariableName }}.ToString("{{ ParameterDateFormat }}", System.Globalization.CultureInfo.InvariantCulture)));
{% elsif parameter.IsArray -%}
for (var i = 0; i < {{ parameter.VariableName }}.Length; i++)
for (var i = 0; i < {{ parameter.VariableName }}.Count(); i++)
{
if (i > 0) urlBuilder_.Append(',');
urlBuilder_.Append(ConvertToString({{ parameter.VariableName }}[i], System.Globalization.CultureInfo.InvariantCulture));
urlBuilder_.Append(ConvertToString({{ parameter.VariableName }}.ElementAt(i), System.Globalization.CultureInfo.InvariantCulture));
}
{% else -%}
urlBuilder_.Append(System.Uri.EscapeDataString(ConvertToString({{ parameter.VariableName }}, System.Globalization.CultureInfo.InvariantCulture)));
{%- endif %}
{%- endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.0" />
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.1" />
<PackageReference Include="xunit" Version="2.6.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NJsonSchema.CodeGeneration.TypeScript" Version="11.0.0" />
<PackageReference Include="NJsonSchema.CodeGeneration.TypeScript" Version="11.0.1" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NJsonSchema.CodeGeneration" Version="11.0.0" />
<PackageReference Include="NJsonSchema.CodeGeneration" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.Console.x86/NSwag.Console.x86.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Portable.Compatibility" Version="1.0.1" />
<PackageReference Include="NConsole" Version="3.12.6605.26941" />
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="5.0.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.Console/NSwag.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Portable.Compatibility" Version="1.0.1" />
<PackageReference Include="NConsole" Version="3.12.6605.26941" />
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="5.0.1" />
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<PackageReference Include="NConsole" Version="3.12.6605.26941" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
</ItemGroup>

<!-- Workaround for https://github.com/NuGet/Home/issues/3891 -->
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NJsonSchema.Yaml" Version="11.0.0" />
<PackageReference Include="NJsonSchema.Yaml" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.Core/NSwag.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NJsonSchema" Version="11.0.0" />
<PackageReference Include="NJsonSchema" Version="11.0.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="xunit" Version="2.6.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.Generation/NSwag.Generation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.0" />
<PackageReference Include="NJsonSchema.NewtonsoftJson" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 3207ff2

Please sign in to comment.