Burgyn / MMLib.SwaggerForOcelot

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

Swagger shows no endpoints when merging config files. #179

Closed aspramsh closed 3 years ago

aspramsh commented 3 years ago

I would like to separate my ocelot configs with this method: .AddOcelot("/foo/bar", hostingContext.HostingEnvironment) like described in this doc: https://ocelot.readthedocs.io/en/latest/features/configuration.html The problem is that if I separate SwaggerEndPoints sections I get the

System.InvalidOperationException: 'SwaggerEndPoints configuration section is missing or empty.'

If I move it to a separate file, then the endpoints are missing. Do I miss something @Burgyn?

aspramsh commented 3 years ago

I have found this issue and will try to do that, thanks: https://github.com/Burgyn/MMLib.SwaggerForOcelot/issues/90