@@ -11,10 +11,13 @@ const DEFAULT_TABLE_ERROR_RETRY_DELAY_MS: u64 = 10000;
11
11
pub struct FullApiPipelineConfig {
12
12
#[ schema( example = "my_publication" ) ]
13
13
pub publication_name : String ,
14
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
14
15
pub batch : Option < BatchConfig > ,
15
16
#[ schema( example = 1000 ) ]
17
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
16
18
pub table_error_retry_delay_ms : Option < u64 > ,
17
19
#[ schema( example = 4 ) ]
20
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
18
21
pub max_table_sync_workers : Option < u16 > ,
19
22
}
20
23
@@ -32,12 +35,16 @@ impl From<StoredPipelineConfig> for FullApiPipelineConfig {
32
35
#[ derive( Debug , Clone , Serialize , Deserialize , ToSchema ) ]
33
36
pub struct PartialApiPipelineConfig {
34
37
#[ schema( example = "my_publication" ) ]
38
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
35
39
pub publication_name : Option < String > ,
36
40
#[ schema( example = r#"{"max_size": 1000000, "max_fill_ms": 10000}"# ) ]
41
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
37
42
pub batch : Option < BatchConfig > ,
38
43
#[ schema( example = 1000 ) ]
44
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
39
45
pub table_error_retry_delay_ms : Option < u64 > ,
40
46
#[ schema( example = 4 ) ]
47
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
41
48
pub max_table_sync_workers : Option < u16 > ,
42
49
}
43
50
0 commit comments