frenck / action-addon-linter

🚀 Frenck's GitHub Action for linting Home Assistant Add-ons.
MIT License
9 stars 3 forks source link

Publish schema json to public url #28

Closed svrooij closed 3 years ago

svrooij commented 3 years ago

I also have some json schema files for my pet project I publish them to github pages (with custom domain but that doesn't matter). So my schema file is available from the internet and that means they automatically work in VSCode.

If you would clone sonos-api-docs and edit this file it does the json checking right in the editor. Because I've set the $schema in the json.

https://github.com/svrooij/sonos-api-docs/blob/d1a95207f37146f6b49cba3b5ce796f67dcd2fa8/docs/documentation.json#L1-L2

You can still use your action, which is great for checking, but this small step would allow all addon developers to use the schema files and have much less faults in their addon configuration.