Skip to main content

append_tagged_path

Function append_tagged_path 

Source
pub fn append_tagged_path<P>(paths: PathsBuilder) -> PathsBuilder
where P: Path + for<'t> Tags<'t>,
Available on crate feature server only.
Expand description

Like PathsBuilder::path_from, but also copies tags from [utoipa::__dev::Tags] onto the operation.

utoipa stores path tags on a separate trait; the OpenApi derive merges them when listing paths(...). Inventory registration must do the same or Scalar dumps every operation under the first sidebar tag.