File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6565//! - `openapi_get_spec![...]`: To generate and return the openapi spec.
6666//!
6767//! The last 3 macros have very similar behavior, but differ in what they return.
68- //! Here is a list of the marcos and what they return:
68+ //! Here is a list of the macros and what they return:
6969//! - `openapi_get_routes![...]`: `Vec<rocket::Route>` (adds route for `openapi.json`)
7070//! - `openapi_get_routes_spec![...]`: `(Vec<rocket::Route>, okapi::openapi3::OpenApi)`
7171//! - `openapi_get_spec![...]`: `okapi::openapi3::OpenApi`
@@ -128,7 +128,7 @@ pub fn get_openapi_route(
128128
129129/// Mount endpoints and mount merged OpenAPI documentation.
130130///
131- /// This marco just makes to code look cleaner and improves readability
131+ /// This macro just makes to code look cleaner and improves readability
132132/// for bigger codebases.
133133///
134134/// The macro expects the following arguments:
@@ -289,7 +289,7 @@ macro_rules! openapi_get_routes {
289289/// - `Vec<rocket::Route>`: A list of all the routes that `rocket::routes![]` would have provided.
290290/// - `OpenApi`: The `okapi::openapi3::OpenApi` spec for all the routes.
291291///
292- /// NOTE: This marco is different from `openapi_get_routes` in that this does not add
292+ /// NOTE: This macro is different from `openapi_get_routes` in that this does not add
293293/// the `openapi.json` file to the list of routes. This is done so the `OpenApi` spec can be changed
294294/// before serving it.
295295///
You can’t perform that action at this time.
0 commit comments