Skip to content

Commit

Permalink
add source_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Kouhei Aoyagi committed Feb 5, 2024
1 parent d1ca9f6 commit 6c3f5f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changes

### v0.10.2 (2024/xx/xx)
* add media_source_tweet_id in attachments

### v0.10.1 (2024/01/23)
* modify trend response

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions maker/responses/attachments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ response:
items:
type: string
poll_ids:
type: array
items:
type: string
media_source_tweet_id:
type: array
items:
type: string
2 changes: 2 additions & 0 deletions src/responses/attachments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ pub struct Attachments {
pub card_ids: Option<Vec<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub poll_ids: Option<Vec<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub media_source_tweet_id: Option<Vec<String>>,
#[serde(flatten)]
pub extra: std::collections::HashMap<String, serde_json::Value>,
}
Expand Down

0 comments on commit 6c3f5f2

Please sign in to comment.