Skip to content

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 20 Aug 14:33
· 37 commits to main since this release
2f160e6
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