Skip to content
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

Swagger shows no endpoints when merging config files. #179

Closed
aspramsh opened this issue Jun 30, 2021 · 1 comment
Closed

Swagger shows no endpoints when merging config files. #179

aspramsh opened this issue Jun 30, 2021 · 1 comment
Assignees

Comments

@aspramsh
Copy link

aspramsh commented Jun 30, 2021

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
Copy link
Author

I have found this issue and will try to do that, thanks:
#90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants