revert to draft07 schema

This commit is contained in:
FabianLars
2026-03-09 12:32:45 +01:00
parent 8d6a6d6d31
commit c6561ab6b4
31 changed files with 745 additions and 3982 deletions
+27 -122
View File
@@ -1,5 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "PermissionFile",
"description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
"type": "object",
@@ -8,7 +8,7 @@
"description": "The default permission set for the plugin",
"anyOf": [
{
"$ref": "#/$defs/DefaultPermission"
"$ref": "#/definitions/DefaultPermission"
},
{
"type": "null"
@@ -19,19 +19,19 @@
"description": "A list of permissions sets defined",
"type": "array",
"items": {
"$ref": "#/$defs/PermissionSet"
"$ref": "#/definitions/PermissionSet"
}
},
"permission": {
"description": "A list of inlined permissions",
"type": "array",
"items": {
"$ref": "#/$defs/Permission"
"$ref": "#/definitions/Permission"
},
"default": []
}
},
"$defs": {
"definitions": {
"DefaultPermission": {
"description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
"type": "object",
@@ -80,7 +80,7 @@
"description": "All permissions this set contains.",
"type": "array",
"items": {
"$ref": "#/$defs/PermissionKind"
"type": "string"
}
}
},
@@ -116,15 +116,23 @@
},
"commands": {
"description": "Allowed or denied commands when using this permission.",
"$ref": "#/$defs/Commands",
"default": {
"allow": [],
"deny": []
}
},
"allOf": [
{
"$ref": "#/definitions/Commands"
}
]
},
"scope": {
"description": "Allowed or denied scoped when using this permission.",
"$ref": "#/$defs/Scopes"
"allOf": [
{
"$ref": "#/definitions/Scopes"
}
]
},
"platforms": {
"description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
@@ -133,7 +141,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Target"
"$ref": "#/definitions/Target"
}
}
},
@@ -174,7 +182,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Value"
"$ref": "#/definitions/Value"
}
},
"deny": {
@@ -184,7 +192,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Value"
"$ref": "#/definitions/Value"
}
}
}
@@ -202,7 +210,11 @@
},
{
"description": "Represents a valid ACL [`Number`].",
"$ref": "#/$defs/Number"
"allOf": [
{
"$ref": "#/definitions/Number"
}
]
},
{
"description": "Represents a [`String`].",
@@ -212,14 +224,14 @@
"description": "Represents a list of other [`Value`]s.",
"type": "array",
"items": {
"$ref": "#/$defs/Value"
"$ref": "#/definitions/Value"
}
},
{
"description": "Represents a map of [`String`] keys to [`Value`]s.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Value"
"$ref": "#/definitions/Value"
}
}
]
@@ -268,113 +280,6 @@
"const": "iOS"
}
]
},
"PermissionKind": {
"type": "string",
"oneOf": [
{
"description": "Enables the arch command without any pre-configured scope.",
"type": "string",
"const": "allow-arch",
"markdownDescription": "Enables the arch command without any pre-configured scope."
},
{
"description": "Denies the arch command without any pre-configured scope.",
"type": "string",
"const": "deny-arch",
"markdownDescription": "Denies the arch command without any pre-configured scope."
},
{
"description": "Enables the exe_extension command without any pre-configured scope.",
"type": "string",
"const": "allow-exe-extension",
"markdownDescription": "Enables the exe_extension command without any pre-configured scope."
},
{
"description": "Denies the exe_extension command without any pre-configured scope.",
"type": "string",
"const": "deny-exe-extension",
"markdownDescription": "Denies the exe_extension command without any pre-configured scope."
},
{
"description": "Enables the family command without any pre-configured scope.",
"type": "string",
"const": "allow-family",
"markdownDescription": "Enables the family command without any pre-configured scope."
},
{
"description": "Denies the family command without any pre-configured scope.",
"type": "string",
"const": "deny-family",
"markdownDescription": "Denies the family command without any pre-configured scope."
},
{
"description": "Enables the hostname command without any pre-configured scope.",
"type": "string",
"const": "allow-hostname",
"markdownDescription": "Enables the hostname command without any pre-configured scope."
},
{
"description": "Denies the hostname command without any pre-configured scope.",
"type": "string",
"const": "deny-hostname",
"markdownDescription": "Denies the hostname command without any pre-configured scope."
},
{
"description": "Enables the locale command without any pre-configured scope.",
"type": "string",
"const": "allow-locale",
"markdownDescription": "Enables the locale command without any pre-configured scope."
},
{
"description": "Denies the locale command without any pre-configured scope.",
"type": "string",
"const": "deny-locale",
"markdownDescription": "Denies the locale command without any pre-configured scope."
},
{
"description": "Enables the os_type command without any pre-configured scope.",
"type": "string",
"const": "allow-os-type",
"markdownDescription": "Enables the os_type command without any pre-configured scope."
},
{
"description": "Denies the os_type command without any pre-configured scope.",
"type": "string",
"const": "deny-os-type",
"markdownDescription": "Denies the os_type command without any pre-configured scope."
},
{
"description": "Enables the platform command without any pre-configured scope.",
"type": "string",
"const": "allow-platform",
"markdownDescription": "Enables the platform command without any pre-configured scope."
},
{
"description": "Denies the platform command without any pre-configured scope.",
"type": "string",
"const": "deny-platform",
"markdownDescription": "Denies the platform command without any pre-configured scope."
},
{
"description": "Enables the version command without any pre-configured scope.",
"type": "string",
"const": "allow-version",
"markdownDescription": "Enables the version command without any pre-configured scope."
},
{
"description": "Denies the version command without any pre-configured scope.",
"type": "string",
"const": "deny-version",
"markdownDescription": "Denies the version command without any pre-configured scope."
},
{
"description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n\n#### This default permission set includes:\n\n- `allow-arch`\n- `allow-exe-extension`\n- `allow-family`\n- `allow-locale`\n- `allow-os-type`\n- `allow-platform`\n- `allow-version`",
"type": "string",
"const": "default",
"markdownDescription": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n\n#### This default permission set includes:\n\n- `allow-arch`\n- `allow-exe-extension`\n- `allow-family`\n- `allow-locale`\n- `allow-os-type`\n- `allow-platform`\n- `allow-version`"
}
]
}
}
}