From 4067b0cec7498d655b45049b287d44ee6d9616f3 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Fri, 19 Jan 2024 11:19:03 -0800 Subject: [PATCH] Regen to fix #61 fix https://github.com/MingweiSamuel/Riven/issues/61 Also regen adds new `lor-match-v1.InfoDto.game_format` field. --- riven/src/endpoints.rs | 2 +- riven/src/meta.rs | 2 +- riven/src/models.rs | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 5fa0986..4419360 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version e610739a49d23996a0987245e4bb5796bcd18533 +// Version 7c0e8b01772177b979c83feae5c71806c1c73205 //! 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 1b72243..c41812e 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version e610739a49d23996a0987245e4bb5796bcd18533 +// Version 7c0e8b01772177b979c83feae5c71806c1c73205 //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index 764ab12..a32e655 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version e610739a49d23996a0987245e4bb5796bcd18533 +// Version 7c0e8b01772177b979c83feae5c71806c1c73205 #![allow(missing_docs)] @@ -799,6 +799,9 @@ pub mod lor_match_v1 { pub game_start_time_utc: String, #[serde(rename = "game_version")] pub game_version: String, + /// (Legal values: standard, eternal) + #[serde(rename = "game_format")] + pub game_format: String, #[serde(rename = "players")] pub players: std::vec::Vec, /// Total turns taken by both players. @@ -3225,7 +3228,8 @@ pub mod tournament_v5 { pub short_code: String, /// Metadata for the TournamentCode #[serde(rename = "metaData")] - pub meta_data: String, + #[serde(skip_serializing_if = "Option::is_none")] + pub meta_data: Option, #[serde(rename = "gameId")] pub game_id: i64, #[serde(rename = "gameName")]