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 86d52f0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 86d52f0

Please sign in to comment.