Giphy / GiphyAPI

Public facing API docs, notes and more
1.9k stars 282 forks source link

Trending GIFs returns empty image JSON objects #251

Open valeriyo opened 1 year ago

valeriyo commented 1 year ago

The trending GIFs endpoint (https://api.giphy.com/v1/gifs/trending) sometimes returns JSON objects with no fields (completely blank):

image

Can you not do that???? If there is no downsized image - don't include it in the response! Empty objects break serialization field requirements in strongly typed languages (like Kotlin) since now all of a sudden, we have to allow the image object to have all nullable fields. This sucks ass, guys. Fix it please.