-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for description and summary overriding (#948)
Add `description = ...` and `summary = ...` attributes for `#[utoipa::path(...)]` attribute macro to allow description and summary overriding. When these attributes are defined the values are not resolved from the doc comment above the function. The value can be either literal string or expression e.g. reference to a `const` variable or `include_str!(...)` statement. Relates to #802 Resolves #439 Resolves #781
- Loading branch information
Showing
3 changed files
with
169 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is description from include_str! |