-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Upgrade Swagger-UI to 3.22.0 #82
Conversation
cool, nothing busted in the project I checked out your branch on :) That black header and logo sure is ugly tho! https://stackoverflow.com/questions/45155881/swagger-ui-hide-definition-url-path
On another framework (not python) the swagger they output is this. I wonder if its better to just link to the cdn and optionally avoid the default theme, looks pretty clean without it!
|
@hampsterx IMHO, use CDN might cause issues if someone(me, for example) using |
This is great! It also means that we can now separate the blueprints for OpenAPI and Swagger again. I joined these originally because of the issue with a relative path to the spec. But it makes more sense to keep them separate. I'm also not a big fan of a link to the CDN and I'll have a look at the PR later today. |
If we want to change the color we can also just add some CSS code like this:
That will give it that old look again :) |
I looked at a handful of other openapi projects last night and most of them are inlining the html/assets and yes there is always someone who will want it offline :) Using a swagger config as mentioned in #24 would allow it to be customized if need be. |
I feel like there is no big downside to provide an inline solution. It's just a few javascript files to host. If you have a problem with hosting this, then I suggest we split the OpenAPI spec and Swagger UI blueprints once again (now possible because of the relative URL fix) and let the users choose themselves if they want only the OpenAPI spec, or also the Swagger UI. I think we are making it too complex by having the third option where you do have the OpenAPI spec and also host the HTML files but not the CSS and JS files. I don't understand why you would want this option. |
oh yup I have no problem with linline solution, seems common. I would merge this PR already but I don't have access. have asked @ahopkins about it. |
Do we want to do something out that ugly header color before we merge? 😛 Edit: I was talking about "you" in the general sense :) not you specifically |
Personally, I would prefer a customizable solution rather than an inline solution. But, I think we don't have to make any decision now. Give it a little time and see do other users also having this requirement(as I know, #59 might request this feature). |
Close #79