remove trailing ' ' in favor of <br>

pull/5/head
Mingwei Samuel 2019-10-27 01:56:22 -07:00
parent b230f266e1
commit 375a98492c
2 changed files with 19 additions and 19 deletions

View File

@ -422,7 +422,7 @@ pub mod match_v4 {
/// For Dominion matches, specifies the points the team had at game end. /// For Dominion matches, specifies the points the team had at game end.
#[serde(rename = "dominionVictoryScore")] #[serde(rename = "dominionVictoryScore")]
pub dominion_victory_score: i32, pub dominion_victory_score: i32,
/// String indicating whether or not the team won. There are only two values visibile in public match history. /// String indicating whether or not the team won. There are only two values visibile in public match history.<br>
/// (Legal values: Fail, Win) /// (Legal values: Fail, Win)
#[serde(rename = "win")] #[serde(rename = "win")]
pub win: String, pub win: String,
@ -465,7 +465,7 @@ pub mod match_v4 {
/// List of legacy Mastery information. Not included for matches played with Runes Reforged. /// List of legacy Mastery information. Not included for matches played with Runes Reforged.
#[serde(rename = "masteries")] #[serde(rename = "masteries")]
pub masteries: std::vec::Vec<Mastery>, pub masteries: std::vec::Vec<Mastery>,
/// Highest ranked tier achieved for the previous season in a specific subset of queueIds, if any, otherwise null. Used to display border in game loading screen. Please refer to the Ranked Info documentation. /// Highest ranked tier achieved for the previous season in a specific subset of queueIds, if any, otherwise null. Used to display border in game loading screen. Please refer to the Ranked Info documentation.<br>
/// (Legal values: CHALLENGER, MASTER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE, UNRANKED) /// (Legal values: CHALLENGER, MASTER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE, UNRANKED)
#[serde(rename = "highestAchievedSeasonTier")] #[serde(rename = "highestAchievedSeasonTier")]
pub highest_achieved_season_tier: crate::consts::Tier, pub highest_achieved_season_tier: crate::consts::Tier,
@ -735,7 +735,7 @@ pub mod match_v4 {
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct ParticipantTimeline { pub struct ParticipantTimeline {
/// Participant's calculated lane. MID and BOT are legacy values. /// Participant's calculated lane. MID and BOT are legacy values.<br>
/// (Legal values: MID, MIDDLE, TOP, JUNGLE, BOT, BOTTOM) /// (Legal values: MID, MIDDLE, TOP, JUNGLE, BOT, BOTTOM)
#[serde(rename = "lane")] #[serde(rename = "lane")]
pub lane: String, pub lane: String,
@ -756,7 +756,7 @@ pub mod match_v4 {
/// Experience change for a specified period. /// Experience change for a specified period.
#[serde(rename = "xpPerMinDeltas")] #[serde(rename = "xpPerMinDeltas")]
pub xp_per_min_deltas: std::collections::HashMap<String, f64>, pub xp_per_min_deltas: std::collections::HashMap<String, f64>,
/// Participant's calculated role. /// Participant's calculated role.<br>
/// (Legal values: DUO, NONE, SOLO, DUO_CARRY, DUO_SUPPORT) /// (Legal values: DUO, NONE, SOLO, DUO_CARRY, DUO_SUPPORT)
#[serde(rename = "role")] #[serde(rename = "role")]
pub role: String, pub role: String,
@ -1065,14 +1065,14 @@ pub mod spectator_v4 {
/// The ID of the platform on which the game is being played /// The ID of the platform on which the game is being played
#[serde(rename = "platformId")] #[serde(rename = "platformId")]
pub platform_id: String, pub platform_id: String,
/// The game mode /// The game mode<br>
/// (Legal values: CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD, KINGPORO) /// (Legal values: CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD, KINGPORO)
#[serde(rename = "gameMode")] #[serde(rename = "gameMode")]
pub game_mode: crate::consts::GameMode, pub game_mode: crate::consts::GameMode,
/// The ID of the map /// The ID of the map
#[serde(rename = "mapId")] #[serde(rename = "mapId")]
pub map_id: crate::consts::Map, pub map_id: crate::consts::Map,
/// The game type /// The game type<br>
/// (Legal values: CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME) /// (Legal values: CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME)
#[serde(rename = "gameType")] #[serde(rename = "gameType")]
pub game_type: crate::consts::GameType, pub game_type: crate::consts::GameType,
@ -1160,21 +1160,21 @@ pub mod tournament_stub_v4 {
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct TournamentCodeParameters { pub struct TournamentCodeParameters {
/// The spectator type of the game. /// The spectator type of the game.<br>
/// (Legal values: NONE, LOBBYONLY, ALL) /// (Legal values: NONE, LOBBYONLY, ALL)
#[serde(rename = "spectatorType")] #[serde(rename = "spectatorType")]
pub spectator_type: String, pub spectator_type: String,
/// The team size of the game. Valid values are 1-5. /// The team size of the game. Valid values are 1-5.
#[serde(rename = "teamSize")] #[serde(rename = "teamSize")]
pub team_size: i32, pub team_size: i32,
/// The pick type of the game. /// The pick type of the game.<br>
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT) /// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[serde(rename = "pickType")] #[serde(rename = "pickType")]
pub pick_type: String, pub pick_type: String,
/// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future. /// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future.
#[serde(rename = "allowedSummonerIds")] #[serde(rename = "allowedSummonerIds")]
pub allowed_summoner_ids: std::vec::Vec<String>, pub allowed_summoner_ids: std::vec::Vec<String>,
/// The map type of the game. /// The map type of the game.<br>
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS) /// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[serde(rename = "mapType")] #[serde(rename = "mapType")]
pub map_type: String, pub map_type: String,
@ -1210,7 +1210,7 @@ pub mod tournament_stub_v4 {
/// The provider's callback URL to which tournament game results in this region should be posted. The URL must be well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port 80, https URLs must use port 443). /// The provider's callback URL to which tournament game results in this region should be posted. The URL must be well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port 80, https URLs must use port 443).
#[serde(rename = "url")] #[serde(rename = "url")]
pub url: String, pub url: String,
/// The region in which the provider will be running tournaments. /// The region in which the provider will be running tournaments.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR) /// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[serde(rename = "region")] #[serde(rename = "region")]
pub region: String, pub region: String,
@ -1235,21 +1235,21 @@ pub mod tournament_v4 {
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct TournamentCodeParameters { pub struct TournamentCodeParameters {
/// The spectator type of the game. /// The spectator type of the game.<br>
/// (Legal values: NONE, LOBBYONLY, ALL) /// (Legal values: NONE, LOBBYONLY, ALL)
#[serde(rename = "spectatorType")] #[serde(rename = "spectatorType")]
pub spectator_type: String, pub spectator_type: String,
/// The team size of the game. Valid values are 1-5. /// The team size of the game. Valid values are 1-5.
#[serde(rename = "teamSize")] #[serde(rename = "teamSize")]
pub team_size: i32, pub team_size: i32,
/// The pick type of the game. /// The pick type of the game.<br>
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT) /// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[serde(rename = "pickType")] #[serde(rename = "pickType")]
pub pick_type: String, pub pick_type: String,
/// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future. /// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future.
#[serde(rename = "allowedSummonerIds")] #[serde(rename = "allowedSummonerIds")]
pub allowed_summoner_ids: std::vec::Vec<String>, pub allowed_summoner_ids: std::vec::Vec<String>,
/// The map type of the game. /// The map type of the game.<br>
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS) /// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[serde(rename = "mapType")] #[serde(rename = "mapType")]
pub map_type: String, pub map_type: String,
@ -1270,7 +1270,7 @@ pub mod tournament_v4 {
/// The spectator mode for the tournament code game. /// The spectator mode for the tournament code game.
#[serde(rename = "spectators")] #[serde(rename = "spectators")]
pub spectators: String, pub spectators: String,
/// The tournament code's region. /// The tournament code's region.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR) /// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[serde(rename = "region")] #[serde(rename = "region")]
pub region: String, pub region: String,
@ -1306,18 +1306,18 @@ pub mod tournament_v4 {
#[derive(Debug)] #[derive(Debug)]
#[derive(serde::Serialize, serde::Deserialize)] #[derive(serde::Serialize, serde::Deserialize)]
pub struct TournamentCodeUpdateParameters { pub struct TournamentCodeUpdateParameters {
/// The spectator type /// The spectator type<br>
/// (Legal values: NONE, LOBBYONLY, ALL) /// (Legal values: NONE, LOBBYONLY, ALL)
#[serde(rename = "spectatorType")] #[serde(rename = "spectatorType")]
pub spectator_type: String, pub spectator_type: String,
/// The pick type /// The pick type<br>
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT) /// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT)
#[serde(rename = "pickType")] #[serde(rename = "pickType")]
pub pick_type: String, pub pick_type: String,
/// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future. /// Optional list of encrypted summonerIds in order to validate the players eligible to join the lobby. NOTE: We currently do not enforce participants at the team level, but rather the aggregate of teamOne and teamTwo. We may add the ability to enforce at the team level in the future.
#[serde(rename = "allowedSummonerIds")] #[serde(rename = "allowedSummonerIds")]
pub allowed_summoner_ids: std::vec::Vec<String>, pub allowed_summoner_ids: std::vec::Vec<String>,
/// The map type /// The map type<br>
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS) /// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS)
#[serde(rename = "mapType")] #[serde(rename = "mapType")]
pub map_type: String, pub map_type: String,
@ -1350,7 +1350,7 @@ pub mod tournament_v4 {
/// The provider's callback URL to which tournament game results in this region should be posted. The URL must be well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port 80, https URLs must use port 443). /// The provider's callback URL to which tournament game results in this region should be posted. The URL must be well-formed, use the http or https protocol, and use the default port for the protocol (http URLs must use port 80, https URLs must use port 443).
#[serde(rename = "url")] #[serde(rename = "url")]
pub url: String, pub url: String,
/// The region in which the provider will be running tournaments. /// The region in which the provider will be running tournaments.<br>
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR) /// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR)
#[serde(rename = "region")] #[serde(rename = "region")]
pub region: String, pub region: String,

View File

@ -38,7 +38,7 @@ pub mod {{= dotUtils.changeCase.snakeCase(endpoint) }} {
let name = dotUtils.normalizePropName(propKey, schemaName, prop); let name = dotUtils.normalizePropName(propKey, schemaName, prop);
}} }}
{{? prop.description }} {{? prop.description }}
/// {{= prop.description.split('\n').map(x => x.trim()).join(' \r\n /// ') }} /// {{= prop.description.split('\n').map(x => x.trim()).join('<br>\r\n /// ') }}
{{?}} {{?}}
{{= dotUtils.formatJsonProperty(propKey) }} {{= dotUtils.formatJsonProperty(propKey) }}
pub {{= name }}: {{= dotUtils.stringifyType(prop) }}, pub {{= name }}: {{= dotUtils.stringifyType(prop) }},