openapi_spec!() { /* proc-macro */ }Expand description
Generate and return a closure that can be used to generate the OpenAPI specification.
This closure take 1 argument:
settings:rocket_okapi::settings::OpenApiSettings
It returns rocket_okapi::animi_okapi::openapi3::OpenApi.
Example:
ⓘ
let settings = animi_rocket_okapi::settings::OpenApiSettings::new();
let spec = animi_rocket_okapi::openapi_spec;