You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Rust utoipa path routes (#245)
* Rust: the utoipa path attribute is a server route
utoipa_axum's routes!(handler) registers a handler without repeating
its path — the path is written in #[utoipa::path] on the handler —
so an API registered that way had no .route("/path", ...) call to
read, and its endpoints were missing from the graph entirely.
The attribute is read wherever it appears, an impl method included,
and a handler inside a #[cfg(test)] module is skipped. One fact per
verb, context_path folded onto the path, and a non-literal path
emits nothing rather than a guess.
Only the attribute's direct children are scanned: params(...) and
responses(...) nest their own key = value pairs, so a recursive scan
would read a parameter's description as the route.
cacheVersion v224. BENCHMARKS.md carries a fresh sweep.
* Another run