Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

captainsafia
Copy link
Member

This PR merges changes in the feature/openapi branch to main. These changes have been reviewed in individual PRs targeting this branch (ref).

Note: this pull request doesn't include JSON schema generation/schema filters at the moment. That's currently in progress in this branch based on prototypes of the upcoming JSON schema generation support coming to STJ. This will come in a later PR.

captainsafia and others added 9 commits April 2, 2024 08:27
* Add entry-point APIs for OpenAPI support

* Apply suggestions from code review

Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Rick Anderson <[email protected]>

* Update docs and pass cancellation token to WriteAsync

* Address feedback

* Remove trailing comma in slnf

* Address more feedback

* Seal OpenApiOptions

---------

Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Rick Anderson <[email protected]>
* Add support for generating OpenAPI info and paths

* Address feedback

* Fix sample and options injection

* Address more feedback
* Support generating OpenAPI operation and associated fields

* Address feedback
* Add APIs for OpenAPI document transformers

* Address feedback

* Update doc comments

* Address more feedback

* Handle service lifetimes correctly in activated transformers

* Handle disposable transformers

* Benchmark on transformer count

* Fix up disposable code and improve paths perf

* Remove unused imports in SharedTypes for RDG tests

* Clean up benchmarks and TryGetCachedOperationTransformerContext
* Add support for generating OpenAPI responses

* Address feedback

* Address more feedback
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 17, 2024
@captainsafia captainsafia added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-openapi area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc labels Apr 17, 2024
Copy link
Member

@BrennanConroy BrennanConroy left a comment

Choose a reason for hiding this comment

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

I assume you aren't going to squash?

@captainsafia
Copy link
Member Author

I assume you aren't going to squash?

Unfortunately not since merge commits are prohibited on this repo.

I plan on including links to the individual PRs in the squased commit description so there's some artifact of each commit out there.

@BrennanConroy
Copy link
Member

Unfortunately not since merge commits are prohibited on this repo.

😮 since when? I vote we have an admin merge it so we don't lose commit history.

@captainsafia
Copy link
Member Author

😮 since when? I vote we have an admin merge it so we don't lose commit history.

I think we enforced this a while ago. @wtgodbe Thoughts on allowing a merge commit for this merge from a feature branch.

@captainsafia
Copy link
Member Author

Going with a squash and merge for now. I want to avoid trying anything unconventional with this PR and about 4 of the commits on this branch are not useful on their own 😅.

I'll reference the appropriate issues in the squashed commit description.

@captainsafia captainsafia merged commit 534946e into main Apr 18, 2024
@captainsafia captainsafia deleted the feature/openapi branch April 18, 2024 01:04
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview4 milestone Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-openapi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants