Skip to content

Commit

Permalink
Update response docs
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Sep 29, 2022
1 parent ab555d6 commit 3920a74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utoipa-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ pub fn derive_to_schema(input: TokenStream) -> TokenStream {
/// * `headers(...)` Slice of response headers that are returned back to a caller.
/// * `example = ...` Can be either `json!(...)` or literal str that can be parsed to json. `json!`
/// should be something that `serde_json::json!` can parse as a `serde_json::Value`. [^json]
/// * `response = ...` Type what implements [`ToResponse`][to_response_trait] trait. This can alternatively be used to
/// define response attributes. _`response`_ attribute cannot co-exist with other than _`status`_ attribute.
///
/// **Minimal response format:**
/// ```text
Expand Down

0 comments on commit 3920a74

Please sign in to comment.