From 599f88ec733d26b257ea6e2b03ea325af7278924 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Wed, 8 Mar 2023 13:51:15 -0800 Subject: [PATCH] Regen for optional `tft-match-v1.UnitDto.items`, fix #50 --- riven/src/endpoints.rs | 2 +- riven/src/meta.rs | 2 +- riven/src/models.rs | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 82cf3b0..fdd040e 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version f3bb2db3eef1ffd9fa3bb8ce0fdaf1c167dc6ae2 +// Version eac495e7f53e2f13cedbe13e257ef23569f53919 //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] diff --git a/riven/src/meta.rs b/riven/src/meta.rs index d63bb09..87472b1 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version f3bb2db3eef1ffd9fa3bb8ce0fdaf1c167dc6ae2 +// Version eac495e7f53e2f13cedbe13e257ef23569f53919 //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index 4058d0f..95c6369 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version f3bb2db3eef1ffd9fa3bb8ce0fdaf1c167dc6ae2 +// Version eac495e7f53e2f13cedbe13e257ef23569f53919 #![allow(missing_docs)] @@ -2618,7 +2618,8 @@ pub mod tft_match_v1 { pub item_names: Option>, /// A list of the unit's items. Please refer to the Teamfight Tactics documentation for item ids. #[serde(rename = "items")] - pub items: std::vec::Vec, + #[serde(skip_serializing_if = "Option::is_none")] + pub items: Option>, /// This field was introduced in patch 9.22 with data_version 2. #[serde(rename = "character_id")] pub character_id: String,