Skip to content

Update dotnet-getdocument to support minimal APIs#43701

Merged
wtgodbe merged 2 commits into
release/7.0from
safia/apidesc-fixes
Sep 8, 2022
Merged

Update dotnet-getdocument to support minimal APIs#43701
wtgodbe merged 2 commits into
release/7.0from
safia/apidesc-fixes

Conversation

@captainsafia
Copy link
Copy Markdown
Contributor

@captainsafia captainsafia commented Sep 1, 2022

Description

This PR update the dotnet getdocument tool to react to changes in hosting that were shipped in .NET 6.

The hosting changes were incongruent with the strategy that the getdocument tool used to extract the active ServiceProvider from the application assembly.

Fixes #43391

Customer Impact

Without this change, OpenAPI document generation in the CLI and client generation in Visual Studio would fail to produce the necessary schemas and code for minimal API endpoints in user applications.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Low because:

  • Change is limited to getdocument tool
  • Change follows pattern used to react to hosting changes in other apps that examine host

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@captainsafia captainsafia added the old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Sep 1, 2022
@captainsafia captainsafia requested review from a team and dougbu September 1, 2022 19:58
@ghost ghost added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Sep 1, 2022
Comment thread src/Tools/GetDocumentInsider/src/Commands/GetDocumentCommand.cs Outdated
Comment thread src/Tools/GetDocumentInsider/src/Commands/GetDocumentCommandWorker.cs Outdated
Comment thread src/Tools/GetDocumentInsider/src/Commands/GetDocumentCommandWorker.cs Outdated
Comment thread src/Tools/dotnet-getdocument/src/Commands/InvokeCommand.cs Outdated
Copy link
Copy Markdown
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving w/ the assumption that you address the comments below. I don't need to check again 😀

Comment thread src/Tools/GetDocumentInsider/src/Commands/GetDocumentCommandWorker.cs Outdated
Comment thread src/Tools/dotnet-getdocument/src/Commands/InvokeCommand.cs Outdated
@captainsafia
Copy link
Copy Markdown
Contributor Author

@Pilchie Can I get RC2 approval for this?

@Pilchie
Copy link
Copy Markdown
Member

Pilchie commented Sep 7, 2022

Approved for .NET 7 RC2.

@captainsafia
Copy link
Copy Markdown
Contributor Author

@dotnet/aspnet-admins Can I get help merging this?

@wtgodbe wtgodbe merged commit 59c8461 into release/7.0 Sep 8, 2022
@wtgodbe wtgodbe deleted the safia/apidesc-fixes branch September 8, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants