BrpQueryRow has field deserialization fix (#16613)
# Objective BrpQueryRow doesn't serialize `has` field if it is empty. That is okay until you try to deserialize it after. Then it will fail to deserialize due to missing field. ## Solution Serde support using default value when field is missing, this PR adds that.
This commit is contained in:
parent
c520ec4287
commit
31bd723462
@ -304,7 +304,7 @@ pub struct BrpQueryRow {
|
||||
pub components: HashMap<String, Value>,
|
||||
|
||||
/// The boolean-only containment query results.
|
||||
#[serde(skip_serializing_if = "HashMap::is_empty")]
|
||||
#[serde(skip_serializing_if = "HashMap::is_empty", default)]
|
||||
pub has: HashMap<String, Value>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user