-
Notifications
You must be signed in to change notification settings - Fork 23
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
FR: Publish the .hujson schema to schemastore.org #28
Comments
Is the implementation possible in time? |
Hi, this is not a priority for us at the moment since we primarily use HuJSON in a web UI that already provides syntax highlighting. You're welcome to contribute a schema file if you want. I don't know much about schemastore and it's fairly low on my priority list to understand how it works. |
Where can I find the schema definition for syntax highlighting in the Web UI? We just need to store it at SchemaStore. It can still be hosted at your end as well. Background is, e.g. for the Tailscale GitOps Pusher usage and a previous validation of the new Tailscale Policy Rule definition in the git repository. I now assumed that if a syntax validation and highlighting already exists in the web UI, we can simply deposit this in the SchemaStore. This would not only allow e.g. MegaLinter to validate the syntax of the .hujson in a CI PipeLine, but also when writing via VS Code or other IDEs the highlighting and syntax validation could be used directly. Here is an example from GitLab for the .gilab-ci.yml: |
Hello @dsnet, can you help me with my question? Is there a schema file as it said in my example for GitLab CI ? Best regards, Bjoern |
There is not currently a schema file usable for your purpose. We are not likely to create one in the near future. |
To use the megalinter and linter in many IDEs is a release the json schema on https://schemastore.org required.
https://github.com/SchemaStore/schemastore
The text was updated successfully, but these errors were encountered: