Burgyn / MMLib.SwaggerForOcelot

This repo contains swagger extension for ocelot.
MIT License
353 stars 94 forks source link

Fixed service discovery schema when kubernetes is used #81

Closed Burgyn closed 4 years ago

Burgyn commented 4 years ago

Fixed #76

Incorrect schema was given when Kubernetes service discovery provider is used.

Scheme is discovered as followed:

  1. ReRoute DownstreamScheme is used if is not NullOrEmpty
  2. Scheme from IServiceDiscoveryProvider is used if is not NullOrEmpty
  3. Otherwise is scheme detected by port: 443 => HTTPS and 80 => HTTP

Thanks to @Adamantinu

update-docs[bot] commented 4 years ago

Thanks for opening this pull request! If you have implemented new functions, write about them in the readme file.