appstream-glib
appstream-glib copied to clipboard
validate fails on mailto link in contact url
On a metainfo file with
<url type="contact">mailto:[email protected]</url>
one gets an error
app.metainfo.xml: FAILED:
• tag-invalid : <url> does not start with 'http://' [mailto:[email protected]]
Validation of files failed
According to https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url urls of the contact type allow for mailto links.
That's not a valid URL, sorry.
contact URLs of this type should allow the user to contact the developer. This could be an email address (mailto link), a webpage (e.g. an online form or a page describing how to contact the developer) or some other valid URL.
@hughsie I am very inclined to drop the mailto: / email address thing from the spec. It's not really useful anymore in a time where most people use webmailers and quite awkward in software centers when user expect a link and then their email program opens. Also, people can still link a webpage which contains their email address.
Fun fact: I think even appstreamcli won't validate this at the moment ^^