From 82c32256535a2c503e997dd9a17efcf4813f74c1 Mon Sep 17 00:00:00 2001 From: detailyang Date: Tue, 26 Apr 2022 14:01:45 +0800 Subject: [PATCH 1/3] bugfix:fix GistsCreateRequest --- github/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/src/types.rs b/github/src/types.rs index eead090c..bf6b2037 100644 --- a/github/src/types.rs +++ b/github/src/types.rs @@ -25478,7 +25478,7 @@ pub struct GistsCreateRequest { * Names and content for the files that make up the gist */ #[serde()] - pub files: FilesAdditionalPropertiesData, + pub files: hashmap, #[serde(default, skip_serializing_if = "Option::is_none")] pub public: Option, } From 573fe14bbdd12f1b4e124294ec8e60504226e3f7 Mon Sep 17 00:00:00 2001 From: detailyang Date: Tue, 26 Apr 2022 14:08:59 +0800 Subject: [PATCH 2/3] fix typo --- github/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/src/types.rs b/github/src/types.rs index bf6b2037..68888d68 100644 --- a/github/src/types.rs +++ b/github/src/types.rs @@ -25478,7 +25478,7 @@ pub struct GistsCreateRequest { * Names and content for the files that make up the gist */ #[serde()] - pub files: hashmap, + pub files: HashMap, #[serde(default, skip_serializing_if = "Option::is_none")] pub public: Option, } From 6e57bdb178103c117093475dec459003f2116ffc Mon Sep 17 00:00:00 2001 From: detailyang Date: Tue, 26 Apr 2022 14:13:05 +0800 Subject: [PATCH 3/3] fix import --- github/src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/github/src/types.rs b/github/src/types.rs index 68888d68..b233ea64 100644 --- a/github/src/types.rs +++ b/github/src/types.rs @@ -1,6 +1,7 @@ //! The data types sent to and returned from the API client. use schemars::JsonSchema; use serde::{Deserialize, Serialize}; +use std::collections::HashMap; /// Simple User #[derive(Serialize, Deserialize, PartialEq, Debug, Clone, JsonSchema)]