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

[Feature request]: Provide json/yaml schema for manifest file via schemastore.org #555

Open
2 tasks done
janopae opened this issue Jul 17, 2023 · 1 comment
Open
2 tasks done

Comments

@janopae
Copy link

janopae commented Jul 17, 2023

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Suggestion

This repository maintains a json schema file for Flatpak manifests. This is not only useful to validate manifest files in json or yaml – IDEs can use these files to provide autocompletion.

A lot of IDEs automatically use schema files published at https://schemastore.org. On this website, you can publish schema files for file name patterns. IDEs wil automatically recognise the file name pattern and use the correct schema file to provide autocompletion for json and yaml files that match the pattern.

I propose publishing the json schema from this repo for files called *.flatpak-manifest.yaml/*.flatpak-manifest.json or simply flatpak-manifest.yaml/flatpak-manifest.json. At best, we could automate pushing the schema there when it changes using GitHub Actions.

@TingPing
Copy link
Member

Unfortunately there is a ton of convention and tooling that expects $FLATPAK_ID.json. I don't think we should publish anything until we can actually ensure people would even be open to using a new file extension.

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