salvo-openapi

Installation
SKILL.md

Salvo OpenAPI Integration

[dependencies]
salvo = { version = "0.89.3", features = ["oapi"] }
serde = { version = "1", features = ["derive"] }

#[endpoint] vs #[handler]

#[handler] is the plain Salvo handler. #[endpoint] registers the same handler AND generates OpenAPI operation metadata. Use #[endpoint] on any route you want documented.

Auto-documentation rules

Documentation is only generated for things the macro can see at compile time:

Related skills
Installs
16
GitHub Stars
18
First Seen
Feb 10, 2026