-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Mechanism to override host, basePath and scheme for OpenAPI 2.x definitions #5981
Comments
path
, basePath
and scheme
for OpenAPI 2.x definitions
This was referenced Apr 30, 2020
Closed
Closed
andrewmostello
added a commit
to andrewmostello/http-swagger
that referenced
this issue
Sep 12, 2020
We need to be able to set the base URL used by the Swagger UI when making API calls, since it may vary at runtime. The swagger-ui repo has an open issue on one way to accomplish this here: swagger-api/swagger-ui#5981 To implement this plugin and use it, we need to be able to adjust the JavaScript being templated into index.html. In other to keep this flexible, I've added new fields to the Config struct to optionally add user specified JavaScript and/or configuration object properties. These fields are all opt-in, so the existing behavior should not be changed. The changes are also open ended enough that they could be used for other requirements that may arise.
16 tasks
andrewmostello
added a commit
to andrewmostello/http-swagger
that referenced
this issue
Aug 12, 2021
We need to be able to set the base URL used by the Swagger UI when making API calls, since it may vary at runtime. The swagger-ui repo has an open issue on one way to accomplish this here: swagger-api/swagger-ui#5981 To implement this plugin and use it, we need to be able to adjust the JavaScript being templated into index.html. In other to keep this flexible, I've added new fields to the Config struct to optionally add user specified JavaScript and/or configuration object properties. These fields are all opt-in, so the existing behavior should not be changed. The changes are also open ended enough that they could be used for other requirements that may arise.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Q&A (please complete the following information)
Content & configuration
Swagger/OpenAPI definition:
https://petstore.swagger.io/v2/swagger.json
Swagger-UI configuration options:
Gist where
UrlMutatorPlugin
will be maintained until fully verified that it satisfy the community usecases:https://gist.github.com/char0n/3b6005c187a4bb771a27705d123af6cd
How can we help?
This issue is not about requesting support, but more about giving one. It consolidates all other issues that have been created around this topics.
Related issues
swagger-api/swagger-js#1095
swagger-api/swagger-js#1027
swagger-api/swagger-js#532
swagger-api/swagger-js#1045
#3042
The text was updated successfully, but these errors were encountered: