App-categories-missing validation error

I think that recently Flathub made the validation more restrictive and now I can’t build anymore an application. See this PR.

Unfortunately appstreamcli doesn’t return any useful information:

$ appstreamcli validate-tree --no-net --explain build/files
org.frescobaldi.Frescobaldi.metainfo.xml
  E: org.frescobaldi.Frescobaldi:~: app-categories-missing
     This component is in no valid categories, even though it should be. Please check its metainfo
     file and desktop-entry file.

? Validation failed: errors: 1, pedantic: 1

The categories are set in the desktop file only, not in the metainfo file. As far as I understand, this should be Ok.
I think I’ve read on Flathub manual that Qt would be not allowed (?) as category (and should be moved to keywords), despite the fact that it is allowed by the Freedesktop spec.

I don’t have much time to investigate further on this issue. I hope someone has already gone through this and can help me to understand what’s going on.

Thanks in advance!

Apparently not:

Drop the <icon type="stock">org.frescobaldi.Frescobaldi</icon> from the metainfo file. That’s causing it.

Desktop apps do not need to specify it, it is usually for CLI apps who do not have a desktop file.

You are right: if I drop that line, it passes the validation.

However, the AppStream documentation seems to say something different:

The <icon/> tag describes the component icon. It is mostly used for GUI applications (component-type desktop-application). It can be of the type stock, cached, local, or url.

stock icons are loaded from stock. The icon name should never include any file-extension or path.

Maybe the docs are not up-to-date?