@pwithnall
Copy link
Contributor

I’d like to validate this file in CI. Its components are of the form:

  <component merge="append">
    <id>app.drey.Dialect</id>
    <custom>
      <value key="GnomeSoftware::FeatureTile">True</value>
    </custom>
  </component>

I believe that’s valid.

However, when I run appstreamcli validate --no-net ./org.gnome.Apps.Featured.xml on it, I get a lot of errors of the form:

E: app.drey.Warp:~: component-summary-missing
E: org.gnome.DejaDup:~: component-summary-missing
E: com.github.geigi.cozy:~: component-summary-missing
E: com.github.hugolabe.Wike:~: component-name-missing

I assume I wouldn’t get these errors if the components had something to merge into, but since I’m validating this file on its own, rather than after composing with other AppStream files, there is nothing to merge the components into.

Would it be possible to elide errors about missing required elements (apart from <id>, which is always required) for components with merge="append" please? Or have I misunderstood how merging works (which is entirely possible)?