The "screenshots" element is now deprecated [once 2.36 hits stable], and will be removed in 2.392.40.
We are including a deprecation notice in the JSON as well, for ease of discover. If you reached this topic from that note, welcome!
The exact version in which we do the removal is awaiting confirmation from stakeholders; this topic will be updated once we’ve agreed it.
"screenshots": [
{
"note": "'screenshots' is deprecated; use 'media' instead. More info at https://forum.snapcraft.io/t/8086"
}
],
turned out to trigger a bug in snapd-glib in that it would interpret that as one screenshot but with no URL. The simplest solution was just to make snapd-glib stop parsing screenshots. I’d recommend now media is fully established to just stop setting screenshots entirely (it’s set to omitempty so clients should accept it not present).
This bug was noticed in GNOME Software for snaps that had no screenshots at all - we checked media and then checked screenshots as the first had no elements.