Skip to content

Commit

Permalink
fix: flatten extensions data field
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques committed Oct 8, 2024
1 parent 73ba24f commit 195922c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ pub struct DataModelExtension<T: JsonSchema> {
pub data_schema: String, // Replace String with URL
#[serde(skip_serializing_if = "Option::is_none")]
pub documentation: Option<String>, // Replace String with URL

#[serde(flatten)]
pub data: T,
}

Expand Down

0 comments on commit 195922c

Please sign in to comment.