Skip to main content

Module serde_helpers

Module serde_helpers 

Source
Expand description

Serde helpers used by generated models.

Functions§

null_to_empty
Deserialize a Vec<T> field, treating an explicit JSON null the same as an empty array. Required because the ClickHouse Cloud API emits null for some array-valued fields that its OpenAPI spec declares as non-nullable arrays (e.g. reversePrivateEndpointIds on Kafka sources). With plain #[serde(default)], a missing field works but an explicit null fails with “invalid type: null, expected a sequence”.