Replies: 1 comment 2 replies
-
Hi @DaleyKD, I'm sorry for late answer. I will try to explore the possibilities and try to respond within a few days. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://swagger.io/docs/specification/api-host-and-base-path/
I'm trying to serve my swagger.json from two locations:
In an attempt to support this, I started using the
servers
part of the OpenAPI 3 spec. It looks something like this in C#:Reading in MMLib, I noticed you only support one server for now. That's totally understandable. To get this to semi-work, I then added the server at the 0-index:
However, to be a bit more verbose, I'd prefer to use:
This throws a
UriFormatException
. It seems likeMMLib.SwaggerForOcelot/src/MMLib.SwaggerForOcelot/Transformation/SwaggerJsonTransformer.cs
Line 78 in 18ea188
is not designed to support server templates.
Beta Was this translation helpful? Give feedback.
All reactions