We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rocket_okapi::rapidoc
rocket_okapi::swagger_ui
swagger_ui
rocket_okapi
I am import the dependencies like this:
rocket = { version = "=0.5.0-rc.2", features = ["json"] } okapi = { git = "https://github.com/GREsau/okapi.git"} schemars = "0.7" rocket_okapi = { git = "https://github.com/GREsau/okapi.git" }
when I added this imports:
use rocket_okapi::{openapi, openapi_get_routes, rapidoc::*, swagger_ui::*};
show error:
unresolved imports `rocket_okapi::rapidoc`, `rocket_okapi::swagger_ui` could not find `rapidoc` in `rocket_okapi`rustc
what should I do to fix it?
The text was updated successfully, but these errors were encountered:
Both Swagger and Rapidocs are available under feature flags. https://github.com/GREsau/okapi#feature-flags
So try something like this:
rocket_okapi = { git = "https://github.com/GREsau/okapi.git", features = ["swagger", "rapidoc"] }
That should fix it.
Sorry, something went wrong.
No branches or pull requests
I am import the dependencies like this:
when I added this imports:
use rocket_okapi::{openapi, openapi_get_routes, rapidoc::*, swagger_ui::*};
show error:
what should I do to fix it?
The text was updated successfully, but these errors were encountered: