-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implemented a workaround for Conul service discovary support. #288
Conversation
… solution in this PR works (please take it as just guidance on how to fix it) , i didnt had time to get fully familiar with your code base and just aplied a hot fix
Thanks for opening this pull request! If you have implemented new functions, write about them in the readme file. |
Hi @raga70, thanks for your PR. I can merge this PR if you:
thanks. |
@@ -46,6 +46,12 @@ public class DownstreamSwaggerDocsRepository : IDownstreamSwaggerDocsRepository | |||
var clientName = _options.Value.HttpClientName ?? ((route?.DangerousAcceptAnyServerCertificateValidator ?? false) ? ServiceCollectionExtensions.IgnoreSslCertificate : string.Empty); | |||
var httpClient = _httpClientFactory.CreateClient(clientName); | |||
|
|||
if (!(url.StartsWith("http://") || url.StartsWith("https://"))) //the url that gets constructed when using consul misses the http schema , and trows an exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use StringComparison.InvariantCultureIgnoreCase
. and remove comments
Hi @Burgyn I committed the changes you requested . |
Hi @raga70, unfortunately your changes failed tests. Please fix tests. |
…l when unit testing
I added nullability to my ServiceProviderType since the ServiceProviderConfiguration is in fact null when unit testing |
Thanks. This will be release soon as |
implemented a workaround for Conul service discovery. Although the solution in this PR works (please take it as just guidance on how to fix it) , I did have time to get fully familiar with your code base and just aplied a hot fix.
PS: my ide made a bit of a reformatting on the files I touched (sorry for the extra hassle when reviewing ), if you have any questions send me a message