andreytreyt / yarp-swagger

It's an easy to use Swagger extension for the YARP project.
MIT License
63 stars 14 forks source link

Add MetadataPath swagger option #22

Closed justinsoderstrom closed 10 months ago

justinsoderstrom commented 10 months ago

Related issues

Issue #21

Describe the pull request

Adds new and optional MetadataPath option in the appsettings.json file where you can specify which swagger path to copy over the OpenAPI info object into the generated swagger document.

Since there can be multiple swagger paths, but only one Info object for the swagger document, the user must specify which metadata YARP should use.

If the user doesn't want to copy over the API metadata, they can simply not add MetadataPath to their appsettings.json file, and it will work as it does now.

Closing issues Closes #21