Closed rabdulatif closed 1 month ago
Thanks for opening this pull request! If you have implemented new functions, write about them in the readme file.
The changes in this pull request focus on the SwaggerServiceDiscoveryProvider
class within the SwaggerServiceDiscoveryProvider.cs
file. Key modifications include the addition of a using directive for Ocelot.Configuration
and updates to the GetScheme
method's signature to accept a new parameter, ServiceProviderConfiguration
. The GetSwaggerUri
method has been adjusted to incorporate this new parameter, enhancing the logic for determining the URI scheme based on configuration. The overall control flow remains unchanged.
File Path | Change Summary |
---|---|
src/MMLib.SwaggerForOcelot/ServiceDiscovery/SwaggerServiceDiscoveryProvider.cs | - Added using directive for Ocelot.Configuration . - Updated GetScheme method to accept ServiceProviderConfiguration conf . - Modified GetSwaggerUri to pass the new conf parameter to GetScheme . - Adjusted URI construction logic to default to configuration's scheme if service scheme is empty. |
GetSwaggerUri
method.GetSwaggerUri
method in the SwaggerServiceDiscoveryProvider
class, directly related to the changes made in the main PR regarding the handling of the URI scheme.🐰 In the land of code where bunnies play,
A scheme was missing, oh what a fray!
With a hop and a tweak, the URI's bright,
Now Swagger's shining, all is right!
Let's cheer for the changes, a joyous delight! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This PR updates the GetScheme method in the SwaggerServiceDiscoveryProvider
Summary by CodeRabbit