-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Feature Request] Swagger UI integration/example #65
Comments
Hey! |
Thank you @kaujea ! |
@Wicpar |
If you're going to integrate swagger-ui code inside this crate, you'll want to abide by their license. Meaning you'll have to adjust the license of the It would also be nice to identify which version of swagger-ui was used in case any bug, vulnerability or security issue was to be discovered inside swagger-ui's code. My opinion on this is it should be kept as example in the repo and not integrated in the crate to avoid all the above. |
It is allowed to keep the license only on the relevant sources without changing the aide licence (§4 of the apache 2.0). |
I am not a lawyer but:
You can check unicode-ident as reference of a crate including a third-party work. |
If we include the source of course it will be attached to the license, either within the source or the folder, and it should be mentionned in the Readme, but the crates license remains the same. If swagger has issues with that they may get in touch with us. |
I'm going to integrate the feature using https://crates.io/crates/swagger-ui, it's a lot more compliant and maintanable as it pulls directly from NPM. |
Why don't you use the Static assets?
This took me like 30min to implement for my own Project |
Hey @Wicpar, did you eventually come up with something regarding this? I would love to have a SwaggerUI integration in |
I was actually super hopeful when I found Any progress on this @Wicpar? Not sure how helpful I'll be, but is there any assistance I can provide? |
I made a simple implementation without the npm crate @Wicpar mentioned. Maybe worth a look |
@devmaxde thanks for your effort. the PR is now merged |
Since its most recent release Swagger UI supports OpenAPI 3.1 specs, meaning it can be used to render aide-generated docs.
As it offers a few useful features over Redoc, such as a convenient "Try it out" button, it would be interesting to have support for this similar to
aide::redoc
or at least docs in the form of an example using it.However, the build process seems a bit more involved. While there is a static dist version similar to how Redoc works, it's recommended to use the npm package in conjunction with a tool like webpack instead to save space, as described here.
Not sure what the best way to go forward is because of that.
The text was updated successfully, but these errors were encountered: