jpopesculian / twitter-v2-rs

Rust bindings for Twitter API v2
https://docs.rs/twitter-v2/latest
102 stars 28 forks source link

Allow null expanded_url and display_url in UrlEntity #18

Closed Syfaro closed 1 year ago

Syfaro commented 1 year ago

Both expanded_url and display_url can be null in a URL entity. Without these changes, some tweets will fail to deserialize.

Syfaro commented 1 year ago

I didn't realize Twitter published an OpenAPI spec for this, thank you for sharing that! Updated the start and end to also be options.