Skip to content

Commit

Permalink
Amend comment - as format is update to x-property = json!(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliendecharentenay committed Jan 16, 2025
1 parent 67b1726 commit 7cd1db9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utoipa-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1477,14 +1477,15 @@ pub fn derive_to_schema(input: TokenStream) -> TokenStream {
///
/// # Extensions Requirements Attributes
///
/// * `property` defines the name of the extension.
/// * `value` defines the value associated with the named extension as a `serde_json::Value`.
/// * `x-property` defines the name of the extension.
/// * `json!(...)` defines the value associated with the named extension as a `serde_json::Value`.
///
/// **Extensions Requitement supported formats:**
///
/// ```text
/// (property = "x-an-extension", value = json!({ "type": "mock" }) ),
/// (property = "x-another-extension", value = json!( "body" ) ),
/// ("x-property" = json!({ "type": "mock" }) ),
/// ("x-an-extension" = json!({ "type": "mock" }) ),
/// ("x-another-extension" = json!( "body" ) ),
/// ```
///
/// # actix_extras feature support for actix-web
Expand Down

0 comments on commit 7cd1db9

Please sign in to comment.