-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[feat] Allow $schema field in tauri.conf.json #3464
Comments
We validate the schema on our CLI. Why do you need the $schema field? Are you performing the validation on your end? |
My IDE (Webstorm) uses it, so I get intellisense/code-completion. I'm also used to these features when editing "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
Ahh makes sense, we'll implement this :) |
I think pointing to an URL would work too 🤔 having the schema locally would be nicer, but only helps people who use the cli from npm |
so like, where is the url? lol |
schema is released to GitHub releases on each release of schema is also distributed with the NPM cli package so you can use a local path to it. |
Nice. Thanks! |
Having a schema for
tauri.conf.json
would be very helpful.I made my own schema file based on your documentation and I reference that schema using the $schema field. But your parser doesn't accept the field. As a workaround, I customized the CLI in
config.rs
and removeddeny_unknown_fields
to make it work.I later found out that you do generate a
schema.json
file fromconfig.rs
code automatically. It doesn't have very good enum support right now IMO, but I recommend you make that schema file available and use it in the code examples.The text was updated successfully, but these errors were encountered: