You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I found an issue related to OpenAPI.Server specification.
the Server in OpenAPI 3.0 combines host and basePath from OpenAPI 2.0 and the basePath part not work as intended.
First, I think we could get basePath from the OpenAPI.servers property but it is not applicable for some use case where it has
multiple server object with different basePath.
If the SwaggerController supply some overidable configuration for the basePath with default of empty string, and it may be used at the prependBasePath above or some.
If I go on some PR for this, I would leave a comment.
The text was updated successfully, but these errors were encountered:
Hi. I found an issue related to OpenAPI.Server specification.
the
Server
in OpenAPI 3.0 combineshost
andbasePath
from OpenAPI 2.0 and thebasePath
part not work as intended.In sample
pet store
case,the
/pet
path should route to/api/v3/pet
.But, if we use
SwaggerRouteDSL.getWithDoc
, it whould register actual endpoint/pet
instead of/api/v3/pet
First, I think we could get basePath from the
OpenAPI.servers
property but it is not applicable for some use case where it hasmultiple server object with different basePath.
If the
SwaggerController
supply some overidable configuration for the basePath with default of empty string, and it may be used at theprependBasePath
above or some.If I go on some PR for this, I would leave a comment.
The text was updated successfully, but these errors were encountered: