-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
hideHostname also hides basePath #677
Comments
@RomanHotsiy Sorry, do you remember why this was closed? Facing the same problem. We're trying out the Pro version, but it has this issue, too. |
Sample API URL: https://example.com:4443/api/v1/endpoint Maybe worth adding to ReDoc readme.md that if the OpenAPI file is missing the |
Missed that... Thanks. |
As per the description
hideHostname
: if set, the protocol and hostname is not shown in the operation definition. It seems likehideHostname
should only hide the schemes and the host as the description says. The Swagger spec. defines thebasePath
as a different element detached from the host (source: https://swagger.io/docs/specification/2-0/api-host-and-base-path/).The
basePath
is an integral element of an endpoint and I believe it should be included even if hideHostname is enabled.I reproduced this using the redoc in React and also the standalone version. See: redoc.html.txt.
The text was updated successfully, but these errors were encountered: