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 88142ea
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ schemars = { version = "0.8", features = ["chrono"] }
rust_decimal = "1.35.0"
uuid = { version = "1.8", features = ["v4", "serde"] }
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.85"
serde_json = "1.0"
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 88142ea

Please sign in to comment.