From 4140794d97791d5673ae82bb20f4b09108c496b6 Mon Sep 17 00:00:00 2001 From: WofWca Date: Tue, 18 Mar 2025 14:58:33 +0400 Subject: [PATCH] capabilities: clarify that TOML supports schema It might not be obvious to people that TOML also supports JSON schema. --- src/content/docs/security/capabilities.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/docs/security/capabilities.mdx b/src/content/docs/security/capabilities.mdx index faf2e3b0b2..b839e520d0 100644 --- a/src/content/docs/security/capabilities.mdx +++ b/src/content/docs/security/capabilities.mdx @@ -198,8 +198,9 @@ to higher privileged windows. Tauri generates JSON schemas with all the permissions available to your application, allowing autocompletion in your IDE. -To use a schema, set the `$schema` property in your configuration to one of the -platform-specific schemas located in the `gen/schemas` directory. Usually +To use a schema, set the `$schema` property in your configuration file +(either .json or .toml) to one of the platform-specific schemas +located in the `gen/schemas` directory. Usually you will set it to `../gen/schemas/desktop-schema.json` or `../gen/schemas/mobile-schema.json` though you can also define a capability for a specific target platform.