juhaku / utoipa

Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
Apache License 2.0
2k stars 160 forks source link

Add support for addtional tags via `tags` #916

Closed juhaku closed 1 month ago

juhaku commented 1 month ago

Add support for additonal tags via tags attribute on utoipa::path macro. All the tags will be appended to the tags will be appended to the tags of the operation. This means that the default tag (the handler function name by default) will be added if not overridden with the tag attribute.

 #[utoipa::path(
    get,
    tag = "some_tag",
    tags = ["addtional tag 1", "another one"]
 )]
 fn handler() {}

Resolves #880, Resolve #792