{ "$schema": "http://json-schema.org/draft-06/schema#", "$ref": "#/definitions/Toptout", "definitions": { "Toptout": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^[a-z0-9-]+$" }, "name": { "type": "string" }, "executable_name": { "type": "string" }, "description": { "type": "string" }, "category": { "type": "string" }, "links": { "$ref": "#/definitions/ToptoutLinks" }, "telemetry": { "type": "array", "items": { "$ref": "#/definitions/Telemetry" } } }, "required": [ "description", "category", "id", "links", "name" ], "title": "Toptout" }, "ToptoutLinks": { "type": "object", "additionalProperties": false, "properties": { "main": { "type": "string", "format": "uri", "qt-uri-protocols": [ "http", "https" ] }, "telemetry": { "type": "string", "format": "uri", "qt-uri-protocols": [ "http", "https" ] }, "privacy": { "type": "string", "format": "uri", "qt-uri-protocols": [ "http", "https" ] } }, "required": [ "main" ], "title": "ToptoutLinks" }, "Telemetry": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^[a-z0-9-]+$" }, "name": { "type": "string" }, "is_official": { "type": "boolean" }, "description": { "type": "string" }, "links": { "$ref": "#/definitions/ToptoutLinks" }, "target": { "$ref": "#/definitions/Target" } }, "required": [ "id", "name", "is_official" ], "title": "Telemetry" }, "Target": { "type": "object", "additionalProperties": false, "properties": { "json_file": { "$ref": "#/definitions/JSONFile" }, "exec": { "$ref": "#/definitions/Exec" }, "env": { "$ref": "#/definitions/Env" }, "plain_file": { "$ref": "#/definitions/PlainFile" }, "registry": { "$ref": "#/definitions/Registry" }, "noop": { "type": "array", "items": { "$ref": "#/definitions/Noop" } } }, "anyOf": [ { "required": [ "json_file" ] }, { "required": [ "exec" ] }, { "required": [ "env" ] }, { "required": [ "plain_file" ] }, { "required": [ "registry" ] }, { "required": [ "noop" ] } ], "title": "Target" }, "Env": { "type": "object", "additionalProperties": false, "properties": { "scope": { "type": "object", "additionalProperties": false, "properties": { "machine": { "$ref": "#/definitions/EnvProperties" }, "user": { "$ref": "#/definitions/EnvProperties" }, "process": { "$ref": "#/definitions/EnvProperties" } }, "anyOf": [ { "required": [ "machine" ] }, { "required": [ "process" ] }, { "required": [ "user" ] } ] } }, "required": [ "scope" ], "title": "PlainFile" }, "EnvProperties": { "type": "object", "additionalProperties": false, "properties": { "path": { "$ref": "#/definitions/Path" }, "value": { "$ref": "#/definitions/Value" } }, "required": [ "path", "value" ], "title": "EnvProperties" }, "Exec": { "type": "object", "additionalProperties": false, "properties": { "scope": { "type": "object", "additionalProperties": false, "properties": { "machine": { "$ref": "#/definitions/ExecProperties" }, "user": { "$ref": "#/definitions/ExecProperties" }, "process": { "$ref": "#/definitions/ExecProperties" } }, "anyOf": [ { "required": [ "machine" ] }, { "required": [ "process" ] }, { "required": [ "user" ] } ] } }, "required": [ "scope" ], "title": "PlainFile" }, "ExecProperties": { "type": "object", "additionalProperties": false, "properties": { "path": { "$ref": "#/definitions/Path" }, "value": { "$ref": "#/definitions/Value" } }, "required": [ "path", "value" ], "title": "ExecProperties" }, "JSONFile": { "type": "object", "additionalProperties": false, "properties": { "scope": { "type": "object", "additionalProperties": false, "properties": { "machine": { "$ref": "#/definitions/JSONFileProperties" }, "user": { "$ref": "#/definitions/JSONFileProperties" }, "process": { "$ref": "#/definitions/JSONFileProperties" } }, "anyOf": [ { "required": [ "machine" ] }, { "required": [ "process" ] }, { "required": [ "user" ] } ] } }, "required": [ "scope" ], "title": "PlainFile" }, "JSONFileProperties": { "type": "object", "additionalProperties": false, "properties": { "path": { "$ref": "#/definitions/Path" }, "selector": { "type": "string" }, "value": { "$ref": "#/definitions/Value" }, "display_value": { "type": "string" } }, "required": [ "display_value", "path", "selector", "value" ], "title": "JSONFileProperties" }, "PlainFile": { "type": "object", "additionalProperties": false, "properties": { "scope": { "type": "object", "additionalProperties": false, "properties": { "machine": { "$ref": "#/definitions/PlainFileProperties" }, "user": { "$ref": "#/definitions/PlainFileProperties" }, "process": { "$ref": "#/definitions/PlainFileProperties" } }, "anyOf": [ { "required": [ "machine" ] }, { "required": [ "process" ] }, { "required": [ "user" ] } ] } }, "required": [ "scope" ], "title": "PlainFile" }, "PlainFileProperties": { "type": "object", "additionalProperties": false, "properties": { "path": { "$ref": "#/definitions/Path" }, "selector": { "type": "string" }, "value": { "$ref": "#/definitions/Value" }, "display_value": { "type": "string" } }, "required": [ "display_value", "path", "selector", "value" ], "title": "PlainFileProperties" }, "Registry": { "type": "object", "additionalProperties": false, "properties": { "scope": { "type": "object", "additionalProperties": false, "properties": { "machine": { "$ref": "#/definitions/RegistryProperties" }, "user": { "$ref": "#/definitions/RegistryProperties" }, "process": { "$ref": "#/definitions/RegistryProperties" } }, "anyOf": [ { "required": [ "machine" ] }, { "required": [ "process" ] }, { "required": [ "user" ] } ] } }, "required": [ "scope" ], "title": "Registry" }, "RegistryProperties": { "type": "object", "additionalProperties": false, "properties": { "root": { "type": "string", "enum": [ "HKEY_CLASSES_ROOT", "HKEY_CURRENT_CONFIG", "HKEY_CURRENT_USER", "HKEY_CURRENT_USER_LOCAL_SETTINGS", "HKEY_LOCAL_MACHINE", "HKEY_PERFORMANCE_DATA", "HKEY_PERFORMANCE_NLSTEXT", "HKEY_PERFORMANCE_TEXT", "HKEY_USERS" ] }, "path": { "type": "string", "pattern": "^(?!\\\\).+?(?