Add field with serde attribute to test
to catch issues with serde attribute stripping in tests
This commit is contained in:
parent
ca5344582b
commit
f0bdc9a7fb
@ -36,6 +36,10 @@ pub mod some_endpoint {
|
|||||||
|
|
||||||
// With no attribute on the field, it will be extracted from the body of the response.
|
// With no attribute on the field, it will be extracted from the body of the response.
|
||||||
pub value: String,
|
pub value: String,
|
||||||
|
|
||||||
|
// You can use serde attributes on any kind of field
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub optional_flag: Option<bool>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user