From a9142538e882d31f9e933a7f2c5aebb181a0ce10 Mon Sep 17 00:00:00 2001 From: Juha Kukkonen Date: Thu, 2 Jan 2025 22:40:42 +0200 Subject: [PATCH] Add summary and description missing documentation --- utoipa-gen/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utoipa-gen/src/lib.rs b/utoipa-gen/src/lib.rs index e30de627..20d01ceb 100644 --- a/utoipa-gen/src/lib.rs +++ b/utoipa-gen/src/lib.rs @@ -1032,6 +1032,12 @@ pub fn derive_to_schema(input: TokenStream) -> TokenStream { /// /// * `security(...)` List of [`SecurityRequirement`][security]s local to the path operation. /// +/// * `summary = ...` Allows overriding summary of the path. Value can be literal string or valid +/// rust expression e.g. `include_str!(...)` or `const` reference. +/// +/// * `description = ...` Allows overriding description of the path. Value can be literal string or valid +/// rust expression e.g. `include_str!(...)` or `const` reference. +/// /// # Request Body Attributes /// /// ## Simple format definition by `request_body = ...`