Skip to content

Commit

Permalink
fix: oapi doc error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Aug 8, 2023
1 parent 5ed9b80 commit 025ac7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/oapi/src/redoc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl ReDoc {
/// # Examples
///
/// ```rust
/// # use salvo_oapi::rapidoc::ReDoc;
/// # use salvo_oapi::redoc::ReDoc;
/// let doc = ReDoc::new("/rapidoc/openapi.json");
/// ```
pub fn new(spec_url: impl Into<String>) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion crates/oapi/src/swagger_ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl SwaggerUi {
/// # use salvo_oapi::OpenApi;
///
/// let swagger = SwaggerUi::new("/swagger-ui/{_:.*}")
/// .url("/api-docs/openapi.json", OpenApi::new("example api", "0.0.1"))
/// .url("/api-docs/openapi.json")
/// .oauth(oauth::Config::new()
/// .client_id("client-id")
/// .scopes(vec![String::from("openid")])
Expand Down

0 comments on commit 025ac7d

Please sign in to comment.