domaindrivendev / Swashbuckle.AspNetCore

Swagger tools for documenting API's built on ASP.NET Core
MIT License
5.23k stars 1.31k forks source link

Identify long-term strategy for JSON schema generation #2521

Open captainsafia opened 1 year ago

captainsafia commented 1 year ago

In .NET 7, we added support for a new Microsoft.AspNetCore.OpenApi package that is designed to work with minimal API applications and provide constructs that allow users to directly modify the OpenApiOperation associated with their endpoints.

At the moment, the package integrates into Swashbuckle using an ad-hoc merge and replace strategy wherein:

In the future, it would be great to unify this ad-hoc strategy, especially now that OpenAPI v3.1's OpenAPI schema exactly matches JSON schema (ref).

Some possibilities include:

With the long-term goal of:

cc: @domaindrivendev @darrelmiller

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.