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

FR: Publish the .hujson schema to schemastore.org #28

Open
strausmann opened this issue Nov 28, 2022 · 5 comments
Open

FR: Publish the .hujson schema to schemastore.org #28

strausmann opened this issue Nov 28, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@strausmann
Copy link

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

@DentonGentry DentonGentry added the enhancement New feature or request label Nov 28, 2022
@DentonGentry DentonGentry changed the title Publish the .hujson schema to schemastore.org FR: Publish the .hujson schema to schemastore.org Nov 28, 2022
@strausmann
Copy link
Author

Is the implementation possible in time?

@dsnet
Copy link
Member

dsnet commented Nov 29, 2022

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.

@strausmann
Copy link
Author

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:
https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json

@strausmann
Copy link
Author

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

@DentonGentry
Copy link

#28 (comment)

There is not currently a schema file usable for your purpose. We are not likely to create one in the near future.

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

No branches or pull requests

3 participants