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

Is there a JSON schema for the config? #148

Open
OnkelTem opened this issue Feb 27, 2024 · 1 comment
Open

Is there a JSON schema for the config? #148

OnkelTem opened this issue Feb 27, 2024 · 1 comment

Comments

@OnkelTem
Copy link

Is there a JSON schema specification for the style settings config?

@OnkelTem
Copy link
Author

OnkelTem commented Mar 5, 2024

Ok, since there was no response, I'm concluding that the schema doesn't exist.

Here is my attempt to create one (still in development).

style-settings.schema.json

I plan to use it with my https://github.com/onkelTem/obsidian-bdt-snippets project. I'll update the main branch a little later.

Using in WebStorm for example:

image

Configuration:

image

You may ask like - how one can use it?

Well, it's easy when you keep your YAML definitions in normal .yaml files, outside of the CSS and use WebStorm/VSCode/whatever editor with proper configuration for a JSON Schema. That's what I did at least and it seems to be the more reasonable, the more complex my configuration becomes.

I only need to add it back in the /* @settings */ section when I'm ready to publish my snippet(s).

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

1 participant