Skip to content

Commit 7cc506f

Browse files
committed
Skip empty descriptions
1 parent 2d8db1f commit 7cc506f

File tree

1 file changed

+1
-0
lines changed
  • compiler-rs/clients_schema_to_rest_api_spec/src

1 file changed

+1
-0
lines changed

compiler-rs/clients_schema_to_rest_api_spec/src/spec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub struct Body {
7171
#[derive(Debug, Serialize)]
7272
pub struct Deprecation {
7373
pub version: String,
74+
#[serde(skip_serializing_if = "String::is_empty")]
7475
pub description: String,
7576
}
7677

0 commit comments

Comments
 (0)