Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync vnext changes with the v2 branch #1861

Merged
merged 195 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
ad775b2
Add stub test to support trailing slashes
mderriey Mar 6, 2024
35398a1
Attempt at supporting trailing slashes
mderriey Mar 6, 2024
996407c
Ensure leaf nodes have no children
mderriey Mar 7, 2024
7fa2f2c
Add `StringComparison.OrdinalIgnoreCase`
mderriey Mar 11, 2024
e222e36
Merge pull request #1703 from microsoft/vnext
irvinesunday Jun 27, 2024
d8eda7a
Make library trim-compatible
captainsafia Jul 4, 2024
08718e1
Avoid using generic overload for all enum types
captainsafia Jul 4, 2024
11466d7
Update PublicApi.Approved.txt
captainsafia Jul 4, 2024
015448f
make verified files as lf and utf8
SimonCropp Jul 5, 2024
a0b6f9d
Avoid binary compat break in CloneFromCopyConstructor
captainsafia Jul 6, 2024
5b006b2
Add obsoletion attributes and fix CloneFromCopyConstructor
captainsafia Jul 9, 2024
8ea0964
Add ReferenceType.Path and tests for display names
captainsafia Jul 9, 2024
2128408
Guard ReferenceType consumption for ExternalResource
captainsafia Jul 15, 2024
07076a7
Bump docker/build-push-action from 6.3.0 to 6.4.0
dependabot[bot] Jul 15, 2024
f0ce99f
Merge pull request #1718 from SimonCropp/make-verified-files-as-lf-an…
MaggieKimani1 Jul 16, 2024
513abb9
Merge pull request #1728 from microsoft/dependabot/github_actions/doc…
MaggieKimani1 Jul 16, 2024
bced7d5
Add trimming test project and fix warnings
captainsafia Jul 17, 2024
be1046d
Apply suggestions from code review
baywet Jul 17, 2024
4cc030d
ci: adds trimming project to solution
baywet Jul 17, 2024
74275b8
ci: adds readers project to trimming test project
baywet Jul 17, 2024
7f7c54a
ci: adds missing trimming root assembly directive
baywet Jul 17, 2024
06b54c3
Fix build, address feedback, and remove Readers from trim tests
captainsafia Jul 17, 2024
887d88b
Bump Verify.Xunit from 25.3.1 to 25.3.2
dependabot[bot] Jul 17, 2024
6899d5f
Merge pull request #1731 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Jul 18, 2024
598f2b6
Create test for bug
Jul 18, 2024
691d99d
Add null check to OpenApiDocument.Components
Jul 18, 2024
c117bc5
Rely on enum fields never being trimmed
captainsafia Jul 18, 2024
d0829ab
Fix copy constructor for arrays and objects
martincostello Jul 19, 2024
35811cc
Address feedback
captainsafia Jul 19, 2024
8267c40
Add back doc comment on M.O.Readers
captainsafia Jul 19, 2024
bd7dcc8
add verify settings to editorconfig
SimonCropp Jul 20, 2024
b873da7
Merge pull request #1734 from kanales/kanales/fix-null-pointer-error-…
andrueastman Jul 22, 2024
134dd0c
Remove redundant section
martincostello Jul 22, 2024
6200767
Update test/Microsoft.OpenApi.Tests/Attributes/DisplayAttributeTests.cs
MaggieKimani1 Jul 22, 2024
1ed30a0
Merge pull request #1739 from martincostello/patch-1
MaggieKimani1 Jul 22, 2024
0f93f39
Merge pull request #1737 from SimonCropp/add-verify-settings-to-edito…
MaggieKimani1 Jul 22, 2024
0646b23
Merge pull request #1736 from martincostello/fix-example-clone
MaggieKimani1 Jul 22, 2024
47ad39d
Fix syntax error
MaggieKimani1 Jul 22, 2024
3f597ba
Merge branch 'vnext' into safia/trimmable
MaggieKimani1 Jul 22, 2024
321e20d
Use native AOT-friendly generic overload
MaggieKimani1 Jul 22, 2024
1a2877f
Merge pull request #1717 from captainsafia/safia/trimmable
MaggieKimani1 Jul 22, 2024
f3dbb1a
Bump docker/build-push-action from 6.4.0 to 6.5.0
dependabot[bot] Jul 22, 2024
c936197
Bump docker/login-action from 3.2.0 to 3.3.0
dependabot[bot] Jul 22, 2024
bc9bed9
Bump Verify.Xunit from 25.3.2 to 26.0.0
dependabot[bot] Jul 22, 2024
a04963b
Merge pull request #1742 from microsoft/dependabot/github_actions/doc…
andrueastman Jul 23, 2024
8a569bc
Merge pull request #1741 from microsoft/dependabot/github_actions/doc…
andrueastman Jul 23, 2024
2565ec0
Merge pull request #1743 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Jul 23, 2024
4a01599
Initialize stream reader with default encoding and buffer size values…
MaggieKimani1 Jul 23, 2024
29acad7
Add test
MaggieKimani1 Jul 23, 2024
f40afd4
Bump Verify.Xunit from 26.0.0 to 26.0.1
dependabot[bot] Jul 23, 2024
4e4ba5d
Merge pull request #1745 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Jul 24, 2024
b651e63
Merge pull request #1744 from microsoft/mk/fix-stream-reader-bug
MaggieKimani1 Jul 24, 2024
c87ef1f
Bump up lib versions
MaggieKimani1 Jul 24, 2024
9406dad
Merge pull request #1746 from microsoft/mk/update-package-versions
MaggieKimani1 Jul 24, 2024
1d09b16
Merge pull request #1747 from microsoft/vnext
MaggieKimani1 Jul 24, 2024
309b0ed
Bump up conversion lib version
irvinesunday Jul 24, 2024
8d50bf7
Bumps up hidi version
irvinesunday Jul 24, 2024
aea2bdc
Merge pull request #1750 from microsoft/is/update-conversion-lib
irvinesunday Jul 24, 2024
32ed80b
Fix securityScheme/securityRequirement serialization
dldl-cmd Jul 24, 2024
9d60ab1
Bump Verify.Xunit from 26.0.1 to 26.1.1
dependabot[bot] Jul 25, 2024
8e8269c
Merge pull request #1753 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Jul 26, 2024
1407b9d
Merge pull request #1751 from microsoft/vnext
irvinesunday Jul 26, 2024
45b43c3
Add missing nuget lib refs
irvinesunday Jul 26, 2024
293e6c2
Remove added nuget package
irvinesunday Jul 26, 2024
ecec3dc
Replace Carlos with Gavin as code reviewer
irvinesunday Jul 26, 2024
a7da3a3
Merge pull request #1754 from microsoft/is/update-missing-pkg
irvinesunday Jul 26, 2024
afbc27d
Merge pull request #1755 from microsoft/is/review-code-reviewers
irvinesunday Jul 26, 2024
ad44ab8
Bump Verify.Xunit from 26.1.1 to 26.1.2
dependabot[bot] Jul 26, 2024
1f815a2
Use ConcurrentDictionary For Improving Get Enum Name
Jul 27, 2024
048abb2
Merge pull request #1758 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Jul 29, 2024
cecd9e7
Remove packages potentially causing build to fail in AzDo pipeline
irvinesunday Jul 29, 2024
0feb41e
Merge remote-tracking branch 'origin/vnext' into is/remove-package
irvinesunday Jul 29, 2024
08c949c
Merge pull request #1760 from microsoft/is/remove-package
irvinesunday Jul 29, 2024
900d04f
Merge pull request #1761 from microsoft/vnext
irvinesunday Jul 29, 2024
99e4e92
Bump Verify.Xunit from 26.1.2 to 26.1.5
dependabot[bot] Jul 29, 2024
da3671e
Merge pull request #1762 from microsoft/dependabot/nuget/Verify.Xunit…
MaggieKimani1 Jul 29, 2024
dcc3816
Bump Verify.Xunit from 26.1.5 to 26.1.6
dependabot[bot] Jul 31, 2024
2250776
Merge pull request #1767 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Aug 1, 2024
d3df64d
Merge pull request #1752 from dldl-cmd/1506_securityRequirement_secur…
MaggieKimani1 Aug 2, 2024
f63443f
Serialize example values with empty arrays for responses
MaggieKimani1 Aug 2, 2024
0b63d77
Add unit test to validate
MaggieKimani1 Aug 2, 2024
91f83f8
Update comment
MaggieKimani1 Aug 2, 2024
28142d5
Simplify by using .Where() for sequence filtering
MaggieKimani1 Aug 2, 2024
2df890a
Add support for unserializable annotations on OpenAPI document
captainsafia Aug 2, 2024
38ba98e
Update src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
MaggieKimani1 Aug 5, 2024
1c19986
Update src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
MaggieKimani1 Aug 5, 2024
27258e9
Update src/Microsoft.OpenApi/Models/OpenApiMediaType.cs
MaggieKimani1 Aug 5, 2024
d96749f
Merge pull request #1768 from microsoft/mk/fix-empty-example-array
MaggieKimani1 Aug 5, 2024
7876018
Merge pull request #1769 from captainsafia/property-bag-support
MaggieKimani1 Aug 5, 2024
0e95ced
Bump lib versions
MaggieKimani1 Aug 6, 2024
60258b5
Merge pull request #1770 from microsoft/mk/update-lib-versions
andrueastman Aug 6, 2024
ccd4a43
Merge pull request #1771 from microsoft/vnext
MaggieKimani1 Aug 6, 2024
79ff30c
Add null check
MaggieKimani1 Aug 9, 2024
c3d6161
Add test to validate; remove commented out code
MaggieKimani1 Aug 9, 2024
a8a40ab
Bump lib versions
MaggieKimani1 Aug 9, 2024
1b67592
Merge pull request #1774 from microsoft/mk/fix-examples-regression-bug
MaggieKimani1 Aug 9, 2024
fd4f752
Upgrade ESRPCodeSigning tasks
MaggieKimani1 Aug 9, 2024
c345fc7
Merge pull request #1775 from microsoft/mk/upgrade-ESRP-codesigning-t…
MaggieKimani1 Aug 9, 2024
5842eff
Merge pull request #1776 from microsoft/vnext
MaggieKimani1 Aug 9, 2024
ece3111
Bump Microsoft.OData.Edm from 7.21.3 to 8.0.0
dependabot[bot] Aug 12, 2024
59927cd
Merge pull request #1779 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Aug 12, 2024
af252a8
Bump Verify.Xunit from 26.1.6 to 26.2.0 (#1778)
dependabot[bot] Aug 12, 2024
abb0473
Bump docker/build-push-action from 6.5.0 to 6.6.1 (#1777)
dependabot[bot] Aug 12, 2024
bbd081d
Bump Microsoft.Windows.Compatibility from 8.0.7 to 8.0.8
dependabot[bot] Aug 13, 2024
6577373
Merge pull request #1780 from microsoft/dependabot/nuget/Microsoft.Wi…
baywet Aug 13, 2024
0c82895
Bump Newtonsoft.Json from 13.0.1 to 13.0.3 (#1782)
dependabot[bot] Aug 19, 2024
19d6e4b
Bump docker/build-push-action from 6.6.1 to 6.7.0
dependabot[bot] Aug 19, 2024
5cedb26
Merge pull request #1784 from microsoft/dependabot/github_actions/doc…
MaggieKimani1 Aug 19, 2024
ca81fa9
Bump Microsoft.OData.Edm from 8.0.0 to 8.0.1
dependabot[bot] Aug 19, 2024
cdf68a5
Merge pull request #1785 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Aug 20, 2024
e468649
Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0
dependabot[bot] Aug 20, 2024
aa62dc0
Merge pull request #1788 from microsoft/dependabot/nuget/Microsoft.NE…
baywet Aug 21, 2024
42dda81
Add server variable substitution logic. (#1783)
calebkiage Aug 22, 2024
3f701e9
Update OData lib and bump Hidi version
irvinesunday Aug 23, 2024
9a5a415
Merge pull request #1794 from microsoft/is/bump-OData-lib
irvinesunday Aug 23, 2024
ea7dcd0
Merge pull request #1795 from microsoft/vnext
irvinesunday Aug 23, 2024
ed36696
chore: cleans useless test project
baywet Aug 28, 2024
70f510b
chore: linting tasks conventions
baywet Aug 28, 2024
154d201
chore: renames unit tests comparison files to match
baywet Aug 28, 2024
6322c0e
fix: additional async APIs
baywet Aug 28, 2024
b504635
chore: additional update of validation files
baywet Aug 28, 2024
8c55d1e
chore: tasks linting
baywet Aug 28, 2024
4a2f20e
Remove explicit pattern signature to enable signing of all binaries
MaggieKimani1 Aug 29, 2024
cfc69ca
Add display names
MaggieKimani1 Aug 29, 2024
6f234f0
Merge pull request #1798 from microsoft/chore/tasks-linting
baywet Aug 29, 2024
0dd71eb
Merge pull request #1800 from microsoft/mk/sign-dlls
MaggieKimani1 Aug 29, 2024
5203668
Merge pull request #1759 from Mahdigln/ImproveGetEnumName
MaggieKimani1 Aug 29, 2024
c3f682e
Bump hidi and lib versions
MaggieKimani1 Aug 29, 2024
ee3bf93
Merge pull request #1801 from microsoft/mk/bump-up-libs
MaggieKimani1 Aug 29, 2024
93bd0b9
Copy over references for all IOpenApiReferenceable objects
MaggieKimani1 Aug 29, 2024
269c1c7
Clean up
MaggieKimani1 Aug 29, 2024
8222496
Add all Referenceable objects to the subset doc
MaggieKimani1 Aug 30, 2024
6db0216
Add test
MaggieKimani1 Aug 30, 2024
ef4de8b
Merge pull request #1803 from microsoft/mk/fix-reference-copying
MaggieKimani1 Aug 30, 2024
a155a0c
Add server info
MaggieKimani1 Aug 30, 2024
e94ea23
Compare the source document's server to that of the resulting subset …
MaggieKimani1 Aug 30, 2024
7668c28
Merge pull request #1802 from microsoft/vnext
MaggieKimani1 Aug 30, 2024
e7062d6
Merge pull request #1805 from microsoft/mk/fix-server-url
MaggieKimani1 Aug 30, 2024
b67e0d7
fix: directly adds non-vulnerable versions of transitive deps to reso…
baywet Aug 30, 2024
582e00a
Merge pull request #1806 from microsoft/security/transitive-deps
baywet Aug 30, 2024
7995db9
ci: upgrades outdated nuget installer task
baywet Aug 30, 2024
1f3c571
Bump Verify.Xunit from 26.2.0 to 26.3.0 (#1808)
dependabot[bot] Aug 31, 2024
01d0a42
Merge pull request #1807 from microsoft/ci/upgrades-task
baywet Sep 2, 2024
af22a8d
Bump Verify.Xunit from 26.3.0 to 26.3.1 (#1811)
dependabot[bot] Sep 3, 2024
cf4201c
Bump Moq from 4.20.70 to 4.20.71
dependabot[bot] Sep 3, 2024
da3dfd9
Merge pull request #1813 from microsoft/dependabot/nuget/Moq-4.20.71
andrueastman Sep 4, 2024
e85dfd0
Remove empty list initialization
MaggieKimani1 Sep 4, 2024
18d99e6
Add tests
MaggieKimani1 Sep 4, 2024
7143cd3
Disable VisualStudio.Threading analyzers to eliminate build failures …
MaggieKimani1 Sep 4, 2024
693d3e3
Use privateAssets setting to control dependency assets
MaggieKimani1 Sep 4, 2024
27c0e78
Merge pull request #1814 from microsoft/mk/fix-default-missing-proper…
MaggieKimani1 Sep 4, 2024
5d9d099
Merge pull request #1815 from microsoft/mk/remove-visual-studio-threa…
MaggieKimani1 Sep 4, 2024
afa73a4
Merge pull request #1816 from microsoft/vnext
MaggieKimani1 Sep 4, 2024
456914f
fix: uses the correct threading dependency to avoid impacting downstr…
baywet Sep 4, 2024
8daa326
Merge pull request #1817 from microsoft/fix/tasks-dependencies
baywet Sep 4, 2024
7c7c25e
Revert security array initialization to avoid a breaking change
MaggieKimani1 Sep 5, 2024
e9f4ba5
Merge pull request #1819 from microsoft/mk/revert-empty-security-arra…
MaggieKimani1 Sep 5, 2024
7a6f1f7
Bump lib versions
MaggieKimani1 Sep 5, 2024
0ae4031
Merge pull request #1821 from microsoft/mk/bump-version
MaggieKimani1 Sep 5, 2024
ef58bf6
Merge pull request #1822 from microsoft/vnext
MaggieKimani1 Sep 5, 2024
6fd6884
Bump Verify.Xunit from 26.3.1 to 26.4.0 (#1825)
dependabot[bot] Sep 5, 2024
102c705
Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1 (#1824)
dependabot[bot] Sep 5, 2024
82707ad
Bump Moq from 4.20.71 to 4.20.72
dependabot[bot] Sep 9, 2024
fcb316e
Merge pull request #1829 from microsoft/dependabot/nuget/Moq-4.20.72
andrueastman Sep 10, 2024
ba426af
Bump Verify.Xunit from 26.4.0 to 26.4.4
dependabot[bot] Sep 10, 2024
b9d2068
Bump FluentAssertions from 6.12.0 to 6.12.1
dependabot[bot] Sep 10, 2024
e026c58
Merge pull request #1828 from microsoft/dependabot/nuget/FluentAssert…
andrueastman Sep 10, 2024
11925be
Merge pull request #1830 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Sep 10, 2024
eb33299
Bump Verify.Xunit from 26.4.4 to 26.4.5 (#1831)
dependabot[bot] Sep 15, 2024
2e6b4b5
Updated for https://dev.azure.com/microsoftgraph/0985d294-5762-4bc2-a…
microsoft-github-policy-service[bot] Sep 15, 2024
97e43b6
Bump Verify.Xunit from 26.4.5 to 26.5.0 (#1834)
dependabot[bot] Sep 18, 2024
e18748f
Align on backslashes
chelkyl Sep 22, 2024
5b22ef4
Bump Verify.Xunit from 26.5.0 to 26.6.0
dependabot[bot] Sep 23, 2024
67a47c6
Merge pull request #1836 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Sep 24, 2024
def1b87
Bump xunit from 2.9.0 to 2.9.1
dependabot[bot] Sep 24, 2024
faa13eb
Merge pull request #1837 from microsoft/dependabot/nuget/xunit-2.9.1
andrueastman Sep 24, 2024
ff22ab9
Merge pull request #1835 from chelkyl/chelkyl/support-trailing-slashes
MaggieKimani1 Sep 25, 2024
8c0cf47
Bump lib versions
irvinesunday Sep 27, 2024
f7f184d
Update test
irvinesunday Sep 27, 2024
c2d3f99
Ensure unique parameters are added
irvinesunday Sep 27, 2024
d88a060
Bump xunit from 2.9.1 to 2.9.2
dependabot[bot] Sep 27, 2024
776d584
Merge pull request #1842 from microsoft/dependabot/nuget/xunit-2.9.2
andrueastman Sep 30, 2024
e035981
Merge pull request #1841 from microsoft/is/filtered-doc-fix
fey101 Sep 30, 2024
310b999
Merge branch 'vnext' into is/resolve-conflicts
irvinesunday Sep 30, 2024
1123e29
Merge pull request #1844 from microsoft/is/resolve-conflicts
irvinesunday Sep 30, 2024
dc6fee7
Bump readers lib.
irvinesunday Sep 30, 2024
9754cd1
Merge pull request #1845 from microsoft/is/bump-readers-lib
irvinesunday Sep 30, 2024
524a03d
Fix merge conflicts
MaggieKimani1 Sep 30, 2024
19463dd
Merge remote-tracking branch 'origin/release/2.0.0' into mk/sync-v2-w…
MaggieKimani1 Oct 3, 2024
3c64451
Fix merge conflicts
MaggieKimani1 Oct 7, 2024
63c096e
Update code owners
MaggieKimani1 Oct 7, 2024
9c64bea
Remove commented out code
MaggieKimani1 Oct 7, 2024
d04b22b
Remove threading package and disable warnings
MaggieKimani1 Oct 8, 2024
2e516a5
Merge branch 'release/2.0.0' into mk/sync-v2-with-vnext
MaggieKimani1 Oct 8, 2024
d2dc8ec
Declare Annotations as nullable to prevent null reference assignment
MaggieKimani1 Oct 8, 2024
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
77 changes: 44 additions & 33 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ extends:
version: 8.x

# Install the nuget tool.
- task: NuGetToolInstaller@0
displayName: 'Use NuGet >=5.2.0'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet >=6.11.0'
inputs:
versionSpec: '>=5.2.0'
versionSpec: '>=6.11.0'
checkLatest: true

# Build the Product project
Expand All @@ -78,16 +78,17 @@ extends:
projects: '$(Build.SourcesDirectory)\Microsoft.OpenApi.sln'
arguments: '--configuration $(BuildConfiguration) --no-build'

- task: EsrpCodeSigning@2
displayName: 'ESRP CodeSigning'
- task: EsrpCodeSigning@5
displayName: 'ESRP CodeSigning binaries'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: src
signConfigType: inlineSignParams
UseMinimatch: true
Pattern: |
**\*.exe
**\*.dll
ConnectedServiceName: 'Federated DevX ESRP Managed Identity Connection'
AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8'
AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
AuthAKVName: 'akv-prod-eastus'
AuthCertName: 'ReferenceLibraryPrivateCert'
AuthSignCertName: 'ReferencePackagePublisherCertificate'
FolderPath: '$(Build.SourcesDirectory)\src'
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
Expand Down Expand Up @@ -126,7 +127,10 @@ extends:
"toolVersion": "1.0"
}
]
SessionTimeout: 20
SessionTimeout: '20'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
PendingAnalysisWaitTimeoutMinutes: '5'

# Pack core lib
- pwsh: dotnet pack $(Build.SourcesDirectory)/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj -o $(Build.ArtifactStagingDirectory) --configuration $(BuildConfiguration) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg
Expand All @@ -140,32 +144,39 @@ extends:
- pwsh: dotnet pack $(Build.SourcesDirectory)/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj -o $(Build.ArtifactStagingDirectory) --configuration $(BuildConfiguration) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg
displayName: 'pack Hidi'

- task: EsrpCodeSigning@2
- task: EsrpCodeSigning@5
displayName: 'ESRP CodeSigning Nuget Packages'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
ConnectedServiceName: 'Federated DevX ESRP Managed Identity Connection'
AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8'
AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
AuthAKVName: 'akv-prod-eastus'
AuthCertName: 'ReferenceLibraryPrivateCert'
AuthSignCertName: 'ReferencePackagePublisherCertificate'
FolderPath: '$(Build.ArtifactStagingDirectory)'
Pattern: '*.nupkg'
signConfigType: inlineSignParams
UseMinimatch: true
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetVerify",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: 20
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetVerify",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
PendingAnalysisWaitTimeoutMinutes: '5'

- task: PowerShell@2
displayName: "Get Hidi's version-number from .csproj"
Expand Down
15 changes: 15 additions & 0 deletions .config/1espt/PipelineAutobaseliningConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.

pipelines:
107:
usedNonDefaultBranch: true
retail:
source:
credscan:
lastModifiedDate: 2024-09-13
eslint:
lastModifiedDate: 2024-09-13
psscriptanalyzer:
lastModifiedDate: 2024-09-13
armory:
lastModifiedDate: 2024-09-13
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,14 @@ csharp_preserve_single_line_blocks = true
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion


# Verify settings
[*.{received,verified}.{txt,xml,json}]
charset = "utf-8-bom"
end_of_line = lf
indent_size = unset
indent_style = unset
insert_final_newline = false
tab_width = unset
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

# VerifyTests
*.verified.txt text eol=lf working-tree-encoding=UTF-8
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @irvinesunday @darrelmiller @zengin @coseguera @millicentachieng @MaggieKimani1 @andrueastman
* @irvinesunday @darrelmiller @gavinbarron @millicentachieng @MaggieKimani1 @andrueastman
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to GitHub package feed
uses: docker/login-action@v3.2.0
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
Expand All @@ -30,13 +30,13 @@ jobs:
id: getversion
- name: Push to GitHub Packages - Nightly
if: ${{ github.ref == 'refs/heads/vnext' }}
uses: docker/build-push-action@v6.3.0
uses: docker/build-push-action@v6.7.0
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
- name: Push to GitHub Packages - Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v6.3.0
uses: docker/build-push-action@v6.7.0
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }}
14 changes: 7 additions & 7 deletions Microsoft.OpenApi.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E546B92F-20A
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{6357D7FD-2DE4-4900-ADB9-ABC37052040A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi.SmokeTests", "test\Microsoft.OpenApi.SmokeTests\Microsoft.OpenApi.SmokeTests.csproj", "{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi.Hidi", "src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj", "{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.OpenApi.Hidi.Tests", "test\Microsoft.OpenApi.Hidi.Tests\Microsoft.OpenApi.Hidi.Tests.csproj", "{D8F799DD-04AC-4A13-B344-45A5B944450A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.OpenApi.Trimming.Tests", "test\Microsoft.OpenApi.Trimming.Tests\Microsoft.OpenApi.Trimming.Tests.csproj", "{1D2E0C6E-B103-4CB6-912E-D56FA1501296}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -56,10 +56,6 @@ Global
{1ED3C2C1-E1E7-4925-B4E6-2D969C3F5237}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1ED3C2C1-E1E7-4925-B4E6-2D969C3F5237}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1ED3C2C1-E1E7-4925-B4E6-2D969C3F5237}.Release|Any CPU.Build.0 = Release|Any CPU
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Release|Any CPU.Build.0 = Release|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -68,6 +64,10 @@ Global
{D8F799DD-04AC-4A13-B344-45A5B944450A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D8F799DD-04AC-4A13-B344-45A5B944450A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D8F799DD-04AC-4A13-B344-45A5B944450A}.Release|Any CPU.Build.0 = Release|Any CPU
{1D2E0C6E-B103-4CB6-912E-D56FA1501296}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D2E0C6E-B103-4CB6-912E-D56FA1501296}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D2E0C6E-B103-4CB6-912E-D56FA1501296}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D2E0C6E-B103-4CB6-912E-D56FA1501296}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -78,9 +78,9 @@ Global
{79933258-0126-4382-8755-D50820ECC483} = {E546B92F-20A8-49C3-8323-4B25BB78F3E1}
{AD83F991-DBF3-4251-8613-9CC54C826964} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{1ED3C2C1-E1E7-4925-B4E6-2D969C3F5237} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE} = {E546B92F-20A8-49C3-8323-4B25BB78F3E1}
{D8F799DD-04AC-4A13-B344-45A5B944450A} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{1D2E0C6E-B103-4CB6-912E-D56FA1501296} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9F171EFC-0DB5-4B10-ABFA-AF48D52CC565}
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ In order to test the validity of an OpenApi document, we avail the following too

5. Copy and paste your OpenAPI descriptions in the **Input Content** window or paste the path to the descriptions file in the **Input File** textbox and click on `Convert` to render the results.

# Build Status

|**master**|
|--|
|[![Build status](https://ci.appveyor.com/api/projects/status/9l6hly3vjeu0tmtx/branch/master?svg=true)](https://ci.appveyor.com/project/MicrosoftOpenAPINETAdmin/openapi-net-54e7i/branch/master)|

# Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Expand Down
14 changes: 14 additions & 0 deletions src/Microsoft.OpenApi.Hidi/Handlers/AsyncCommandHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.CommandLine.Invocation;
using System.Threading.Tasks;

namespace Microsoft.OpenApi.Hidi.Handlers;

internal abstract class AsyncCommandHandler : ICommandHandler
{
public int Invoke(InvocationContext context)
{
throw new InvalidOperationException("This method should not be called");
}
public abstract Task<int> InvokeAsync(InvocationContext context);
}
10 changes: 3 additions & 7 deletions src/Microsoft.OpenApi.Hidi/Handlers/PluginCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@

namespace Microsoft.OpenApi.Hidi.Handlers
{
internal class PluginCommandHandler : ICommandHandler
internal class PluginCommandHandler : AsyncCommandHandler
{
public CommandOptions CommandOptions { get; }
public PluginCommandHandler(CommandOptions commandOptions)
{
CommandOptions = commandOptions;
}
public int Invoke(InvocationContext context)
{
return InvokeAsync(context).GetAwaiter().GetResult();
}
public async Task<int> InvokeAsync(InvocationContext context)
public override async Task<int> InvokeAsync(InvocationContext context)
{
var hidiOptions = new HidiOptions(context.ParseResult, CommandOptions);
var cancellationToken = (CancellationToken)context.BindingContext.GetRequiredService(typeof(CancellationToken));
Expand All @@ -31,7 +27,7 @@ public async Task<int> InvokeAsync(InvocationContext context)
var logger = loggerFactory.CreateLogger<PluginCommandHandler>();
try
{
await OpenApiService.PluginManifest(hidiOptions, logger, cancellationToken).ConfigureAwait(false);
await OpenApiService.PluginManifestAsync(hidiOptions, logger, cancellationToken).ConfigureAwait(false);

return 0;
}
Expand Down
10 changes: 3 additions & 7 deletions src/Microsoft.OpenApi.Hidi/Handlers/ShowCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@

namespace Microsoft.OpenApi.Hidi.Handlers
{
internal class ShowCommandHandler : ICommandHandler
internal class ShowCommandHandler : AsyncCommandHandler
{
public CommandOptions CommandOptions { get; set; }
public ShowCommandHandler(CommandOptions commandOptions)
{
CommandOptions = commandOptions;
}
public int Invoke(InvocationContext context)
{
return InvokeAsync(context).GetAwaiter().GetResult();
}
public async Task<int> InvokeAsync(InvocationContext context)
public override async Task<int> InvokeAsync(InvocationContext context)
{
var hidiOptions = new HidiOptions(context.ParseResult, CommandOptions);
var cancellationToken = (CancellationToken)context.BindingContext.GetRequiredService(typeof(CancellationToken));
Expand All @@ -31,7 +27,7 @@ public async Task<int> InvokeAsync(InvocationContext context)
var logger = loggerFactory.CreateLogger<ShowCommandHandler>();
try
{
await OpenApiService.ShowOpenApiDocument(hidiOptions, logger, cancellationToken).ConfigureAwait(false);
await OpenApiService.ShowOpenApiDocumentAsync(hidiOptions, logger, cancellationToken).ConfigureAwait(false);

return 0;
}
Expand Down
10 changes: 3 additions & 7 deletions src/Microsoft.OpenApi.Hidi/Handlers/TransformCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@

namespace Microsoft.OpenApi.Hidi.Handlers
{
internal class TransformCommandHandler : ICommandHandler
internal class TransformCommandHandler : AsyncCommandHandler
{
public CommandOptions CommandOptions { get; }
public TransformCommandHandler(CommandOptions commandOptions)
{
CommandOptions = commandOptions;
}
public int Invoke(InvocationContext context)
{
return InvokeAsync(context).GetAwaiter().GetResult();
}
public async Task<int> InvokeAsync(InvocationContext context)
public override async Task<int> InvokeAsync(InvocationContext context)
{
var hidiOptions = new HidiOptions(context.ParseResult, CommandOptions);
var cancellationToken = (CancellationToken)context.BindingContext.GetRequiredService(typeof(CancellationToken));
Expand All @@ -31,7 +27,7 @@ public async Task<int> InvokeAsync(InvocationContext context)
var logger = loggerFactory.CreateLogger<TransformCommandHandler>();
try
{
await OpenApiService.TransformOpenApiDocument(hidiOptions, logger, cancellationToken).ConfigureAwait(false);
await OpenApiService.TransformOpenApiDocumentAsync(hidiOptions, logger, cancellationToken).ConfigureAwait(false);

return 0;
}
Expand Down
11 changes: 3 additions & 8 deletions src/Microsoft.OpenApi.Hidi/Handlers/ValidateCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,15 @@

namespace Microsoft.OpenApi.Hidi.Handlers
{
internal class ValidateCommandHandler : ICommandHandler
internal class ValidateCommandHandler : AsyncCommandHandler
{
public CommandOptions CommandOptions { get; }

public ValidateCommandHandler(CommandOptions commandOptions)
{
CommandOptions = commandOptions;
}

public int Invoke(InvocationContext context)
{
return InvokeAsync(context).GetAwaiter().GetResult();
}
public async Task<int> InvokeAsync(InvocationContext context)
public override async Task<int> InvokeAsync(InvocationContext context)
{
var hidiOptions = new HidiOptions(context.ParseResult, CommandOptions);
var cancellationToken = (CancellationToken)context.BindingContext.GetRequiredService(typeof(CancellationToken));
Expand All @@ -33,7 +28,7 @@ public async Task<int> InvokeAsync(InvocationContext context)
try
{
if (hidiOptions.OpenApi is null) throw new InvalidOperationException("OpenApi file is required");
var isValid = await OpenApiService.ValidateOpenApiDocument(hidiOptions.OpenApi, logger, cancellationToken).ConfigureAwait(false);
var isValid = await OpenApiService.ValidateOpenApiDocumentAsync(hidiOptions.OpenApi, logger, cancellationToken).ConfigureAwait(false);
return isValid is not false ? 0 : -1;
}
#if RELEASE
Expand Down
Loading
Loading