mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
fix(api types): Add an unused field to empty API types.
Null structs (struct Foo;) cause the following error when trying to
deserialize an empty JSON object `{}` into them:
`JsonDecodeError("{}\n", Syntax(InvalidType(Map), 1, 1))` (also known as
`invalid type: map at line 1 column 1: {}`). The optional struct member
prevents this error.
This commit is contained in:
@@ -371,7 +371,7 @@ impl Part for Library {}
|
||||
/// * [modules versions instances debug apps](struct.AppModuleVersionInstanceDebugCall.html) (request)
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct DebugInstanceRequest;
|
||||
pub struct DebugInstanceRequest { _never_set: Option<bool> }
|
||||
|
||||
impl RequestValue for DebugInstanceRequest {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user