nytimes / public_api_specs

The API Specs (in OpenAPI/Swagger) for the APIs available from developer.nytimes.com
http://developer.nytimes.com
Apache License 2.0
136 stars 40 forks source link

Incoherent Type on Empty Media tag #43

Open RayanZahab opened 6 years ago

RayanZahab commented 6 years ago

When Media tag is empty its returning an empty String instead of an empty array.

http://api.nytimes.com/svc/mostpopular/v2/mostviewed/all-sections/7.json?apikey=XYZ

{
"url":"https:\/\/www.nytimes.com\/2018\/05\/17\/style\/royal-wedding-time-date.html", "adx_keywords":"Royal Wedding;Weddings and Engagements;Time;Harry, Prince of Wales;Markle, Meghan", "column":null, "section":"Style", "byline":"By THE NEW YORK TIMES", "type":"Article", "title":"What Time Was the Royal Wedding in My Time Zone?", "abstract":"Interesting news: The royal wedding is now in the past. ", "published_date":"2018-05-17", "source":"The New York Times", "id":100000005904642, "asset_id":100000005904642, "views":4, "des_facet":[
"WEDDINGS AND ENGAGEMENTS", "TIME" ], "org_facet":"", "per_facet":[
"HARRY, PRINCE OF WALES", "MARKLE, MEGHAN" ], "geo_facet":"", "media":"" },