salvo-openapi
Installation
SKILL.md
Salvo OpenAPI Integration
[dependencies]
salvo = { version = "0.94.0", 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: