Skip to content

Commit 341cbec

Browse files
committed
Merge branch 'main' into feature/get-operation-by-id
2 parents fa646f9 + ba2d2a5 commit 341cbec

87 files changed

Lines changed: 3003 additions & 878 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.azure-pipelines/ci-build.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,16 @@ extends:
100100
arguments: '--configuration $(BuildConfiguration) --no-incremental'
101101

102102
# Run the Unit test
103-
- task: DotNetCoreCLI@2
103+
- pwsh: |
104+
dotnet test "$(Build.SourcesDirectory)\Microsoft.OpenApi.slnx" `
105+
--configuration $(BuildConfiguration) `
106+
--no-build `
107+
-- `
108+
--report-azdo `
109+
--publish-azdo-test-results `
110+
--results-directory="$(Agent.TempDirectory)\TestResults" `
111+
--minimum-expected-tests 1
104112
displayName: 'test'
105-
inputs:
106-
command: test
107-
projects: '$(Build.SourcesDirectory)\Microsoft.OpenApi.slnx'
108-
arguments: '--configuration $(BuildConfiguration) --no-build'
109113
110114
- task: EsrpCodeSigning@6
111115
displayName: 'ESRP CodeSigning binaries'

‎.github/dependabot.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ updates:
55
open-pull-requests-limit: 10
66
schedule:
77
interval: daily
8+
groups:
9+
codeql:
10+
patterns:
11+
- github/codeql-action*
812
cooldown:
913
default-days: 7
1014
- package-ecosystem: nuget
@@ -16,9 +20,12 @@ updates:
1620
MicrosoftExtensions:
1721
patterns:
1822
- Microsoft.Extensions.*
19-
coverlet:
23+
testing:
2024
patterns:
2125
- coverlet.*
26+
- Microsoft.NET.Test.Sdk
27+
- Microsoft.Testing.*
28+
- xunit.*
2229
cooldown:
2330
default-days: 7
2431
- package-ecosystem: dotnet-sdk

‎.github/workflows/ci-cd.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: run_unit_tests
4646
shell: pwsh
4747
run: |
48-
dotnet test Microsoft.OpenApi.slnx -c Release --no-build -v n --collect:"XPlat Code Coverage"
48+
dotnet test --solution Microsoft.OpenApi.slnx -c Release -v n --results-directory=./TestResults --coverlet --coverlet-output-format cobertura --report-gh
4949
5050
- name: Install report generator
5151
shell: pwsh
@@ -55,7 +55,7 @@ jobs:
5555
- name: Generate coverage report
5656
shell: pwsh
5757
run: |
58-
reportgenerator -reports:**/coverage.cobertura.xml -targetdir:./reports/coverage -reporttypes:"Html;MarkdownSummaryGithub;Cobertura"
58+
reportgenerator -reports:./TestResults/**/coverage.cobertura.*.xml -targetdir:./reports/coverage -reporttypes:"Html;MarkdownSummaryGithub;Cobertura"
5959
6060
- name: Add coverage to job summary
6161
shell: bash

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Initialize CodeQL
3636
id: init_codeql
37-
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
37+
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
3838
with:
3939
queries: security-and-quality
4040

@@ -54,6 +54,6 @@ jobs:
5454
5555
- name: Perform CodeQL Analysis
5656
id: analyze_codeql
57-
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
57+
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
5858

5959
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)

‎.github/workflows/promote-shipped-apis.yml‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- support/v2
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
1014
jobs:
1115
promote-apis:
1216
runs-on: ubuntu-latest
@@ -20,6 +24,15 @@ jobs:
2024
with:
2125
client-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
2226
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
27+
permission-contents: write
28+
permission-pull-requests: write
29+
30+
- name: Get GitHub App user ID
31+
id: get-user-id
32+
shell: bash
33+
env:
34+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
35+
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
2336

2437
- name: Checkout code
2538
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -32,9 +45,9 @@ jobs:
3245
env:
3346
GH_TOKEN: ${{ steps.app-token.outputs.token }}
3447
run: |
35-
git config --global user.name "github-actions[bot]"
36-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
37-
git config --global url."https://$($env:GH_TOKEN)@github.com/".insteadOf "https://github.com/"
48+
git config --global user.name "${{ steps.app-token.outputs.app-slug }}[bot]"
49+
git config --global user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
50+
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
3851
3952
- name: Check for existing PR
4053
id: check_pr

‎.github/workflows/sonarcloud.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
runs-on: windows-latest
3636
steps:
3737
- name: Set up JDK 17
38-
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
38+
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
3939
with:
40-
distribution: 'adopt'
40+
distribution: 'temurin'
4141
java-version: 17
4242
- name: Setup .NET 8
4343
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
@@ -61,12 +61,10 @@ jobs:
6161
- name: Build and analyze
6262
env:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
64-
CollectCoverage: true
65-
CoverletOutputFormat: 'opencover' # https://github.com/microsoft/vstest/issues/4014#issuecomment-1307913682
6664
shell: pwsh
6765
run: |
68-
dotnet tool run dotnet-sonarscanner begin /k:"microsoft_OpenAPI.NET" /o:"microsoft" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="test/**/coverage.opencover.xml"
66+
dotnet tool run dotnet-sonarscanner begin /k:"microsoft_OpenAPI.NET" /o:"microsoft" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover*.xml"
6967
dotnet workload restore
7068
dotnet build
71-
dotnet test Microsoft.OpenApi.slnx --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
72-
dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
69+
dotnet test --solution Microsoft.OpenApi.slnx --verbosity normal --coverlet --coverlet-output-format opencover --report-gh
70+
dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.10.0"
2+
".": "3.10.2"
33
}

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## [3.10.2](https://github.com/microsoft/OpenAPI.NET/compare/v3.10.1...v3.10.2) (2026-08-20)
4+
5+
6+
### Bug Fixes
7+
8+
* duplicate schema example when serializing to v2 ([#3045](https://github.com/microsoft/OpenAPI.NET/issues/3045)) ([50f5a2b](https://github.com/microsoft/OpenAPI.NET/commit/50f5a2bb119089bb48987494d906cb1a95cddbd1))
9+
10+
## [3.10.1](https://github.com/microsoft/OpenAPI.NET/compare/v3.10.0...v3.10.1) (2026-08-19)
11+
12+
13+
### Bug Fixes
14+
15+
* circular ref guard ([#3033](https://github.com/microsoft/OpenAPI.NET/issues/3033)) ([8018d40](https://github.com/microsoft/OpenAPI.NET/commit/8018d40aac5fc6ed5e022e6203ee917ecf36472c))
16+
* harden yaml parsing ([#3027](https://github.com/microsoft/OpenAPI.NET/issues/3027)) ([e0d5e9d](https://github.com/microsoft/OpenAPI.NET/commit/e0d5e9d105ad1a7b29ff6c628793614f5610f048))
17+
318
## [3.10.0](https://github.com/microsoft/OpenAPI.NET/compare/v3.9.0...v3.10.0) (2026-08-11)
419

520

‎Directory.Build.props‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<PackageProjectUrl>https://github.com/Microsoft/OpenAPI.NET</PackageProjectUrl>
1313
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
1414
<PackageTags>OpenAPI .NET</PackageTags>
15-
<Version>3.10.0</Version>
15+
<Version>3.10.2</Version>
1616
</PropertyGroup>
1717
<!-- https://github.com/clairernovotny/DeterministicBuilds#deterministic-builds -->
1818
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
1919
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2020
</PropertyGroup>
2121
<ItemGroup>
22-
<PackageReference Condition="!$(MSBuildProjectName.EndsWith('Tests'))" Include="Microsoft.SourceLink.GitHub" Version="10.0.301" PrivateAssets="All"/>
22+
<PackageReference Condition="!$(MSBuildProjectName.EndsWith('Tests'))" Include="Microsoft.SourceLink.GitHub" Version="10.0.400" PrivateAssets="All"/>
2323
</ItemGroup>
2424
</Project>

‎global.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"sdk": {
3-
"version": "10.0.302"
3+
"version": "10.0.400"
4+
},
5+
"test": {
6+
"runner": "Microsoft.Testing.Platform"
47
}
58
}

0 commit comments

Comments
 (0)