Context
curl 'https://en.wikipedia.beta.wmflabs.org/w/rest.php/coredev/v0/search/page?q=Math' | jq
Produces an output where thumbnails representation in JSON contains size: 0.
{ "id": 147702, "key": "MathML", "title": "MathML", "excerpt": "following integer sequence: \u007f'"`UNIQ--post<span class=\"searchmatch\">Math</span>-00000001-QINU`"'\u007f or (often, in modern usage): \u007f'"`UNIQ--post<span class=\"searchmatch\">Math</span>-00000002-QINU`"'\u007f Template:OEIS. By definition", "description": null, "thumbnail": { "mimetype": "image/svg+xml", "size": 0, "width": 200, "height": 126, "duration": null, "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/FibonacciBlocks.svg/200px-FibonacciBlocks.svg.png" } },
Expected result
- Size shouldn't be 0 for a valid thumbnail. It should be either a real size of the file or null.