-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Upgrade Microsoft.OpenApi to 2.0.0 #62719
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
Upgrade Microsoft.OpenApi to 2.0.0 #62719
Conversation
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
@copilot Undo the changes in NuGet.config and the eng folder. |
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
Done. Reverted changes in NuGet.config and eng folder. Commit: 9a3f2d3 |
@copilot Update the version for OpenApi packages in eng/Versions.props only. |
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
Updated Microsoft.OpenApi versions to 2.0.0 in eng/Versions.props only. All affected projects use centralized version management and will automatically pick up the new version. Commit: 77b0b5b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the Microsoft.OpenApi dependencies from preview 2.0.0-preview.29 to the stable 2.0.0 release and aligns test snapshots accordingly.
- Updated Microsoft.OpenApi and Microsoft.OpenApiYamlReader versions in
eng/Versions.props
- Added
GeneratedCodeAttribute
entries in a source-generator snapshot for consistency
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/XmlCommentDocumentationIdTests.CanMergeXmlCommentsWithDifferentDocumentationIdFormats#OpenApiXmlCommentSupport.generated.verified.cs | Inserted GeneratedCodeAttribute annotations on generated helper classes |
eng/Versions.props | Bumped <MicrosoftOpenApiVersion> and <MicrosoftOpenApiYamlReaderVersion> to 2.0.0 |
This PR upgrades the Microsoft.OpenApi dependencies from version 2.0.0-preview.29 to the stable 2.0.0 release.
Changes Made
MicrosoftOpenApiVersion
from2.0.0-preview.29
to2.0.0
ineng/Versions.props
MicrosoftOpenApiYamlReaderVersion
from2.0.0-preview.29
to2.0.0
ineng/Versions.props
[1.6.17, )
to[2.0.0, )
ineng/Baseline.Designer.props
Affected Projects
The following projects use Microsoft.OpenApi and will automatically pick up the new version:
src/OpenApi/src/Microsoft.AspNetCore.OpenApi.csproj
- Main OpenAPI implementationsrc/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Microsoft.AspNetCore.OpenApi.Tests.csproj
- Unit testssrc/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.csproj
- Source generator testssrc/OpenApi/sample/Sample.csproj
- Sample projectsrc/Tools/GetDocumentInsider/src/GetDocument.Insider.csproj
- OpenAPI document generation toolsrc/Tools/GetDocumentInsider/tests/GetDocumentInsider.Tests.csproj
- Tool testsAll projects use centralized version management via
<Reference Include="Microsoft.OpenApi" />
syntax, ensuring consistent versioning across the codebase.Verification
The upgrade maintains backward compatibility while providing access to the latest stable Microsoft.OpenApi features and bug fixes.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.