Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: Metainfo validation service #3

Open
probonopd opened this issue Feb 24, 2020 · 3 comments
Open

Wishlist: Metainfo validation service #3

probonopd opened this issue Feb 24, 2020 · 3 comments

Comments

@probonopd
Copy link
Contributor

Having this tool will hopefully greatly help people put together properly working metainfo files. What would be great to have, too, would be a validation service for metainfo files, e.g., some REST API you could POST a metainfo file to and get back its validity.

@probonopd probonopd changed the title Metainfo validation service Wishlist: Metainfo validation service Feb 24, 2020
@ximion
Copy link
Owner

ximion commented Feb 24, 2020

That was my initial idea, but that would have required some webserver to run a Flask Python app on. Because there is no way I am reimplementing libappstream's validator in JavaScript, it is already a pretty complex thing.
If this feature could be made optional somehow, I'd consider it (but then Freedesktop couldn't offer it, as that can only serve static data...). So, nice to have, but currently not a priority. The tool will simply advise people to validate their data locally.

@probonopd
Copy link
Contributor Author

there is no way I am reimplementing libappstream's validator in JavaScript

Ah, that's what I was hoping for; this way the validation code could run on the client side and on the server side, too.

Would it be possible to compile the existing validator to WebAssembly?

@ximion
Copy link
Owner

ximion commented Feb 25, 2020

I have no idea - a bunch of other libraries (like GLib) would also have to be compiled to wasm for that to work.
At least currently, I don't think it's worth the effort.
In other news, the "create GUI app" form of the MetaInfo creator produces data that I'm happy with now and that is complete enough :-)
Now this just needs some user testing and a few more explanatory texts in a few places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants