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.
Related issues
Issue #21
Describe the pull request
Adds new and optional
MetadataPath
option in theappsettings.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 theirappsettings.json
file, and it will work as it does now.Closing issues Closes #21