script/win/modulecheck/commonEvents.json

115 lines
3.7 KiB
JSON
Raw Normal View History

2025-01-21 11:30:03 +08:00
{
"title": "JSON schema for commonEvents.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": true,
"required": [
"commonEvents"
],
"propertyNames": {
"enum": [
"commonEvents"
]
},
"properties": {
"commonEvents": {
"description": "This tag and subtag are not supported on lightweight devices.",
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"events"
],
"propertyNames": {
"enum": [
"name",
"permission",
"types",
2025-05-09 08:58:27 +08:00
"events",
"filter"
2025-01-21 11:30:03 +08:00
]
},
"properties": {
"name": {
"description": "This label indicates the ability name corresponding to the current static public event.",
"type": "string",
"maxLength": 127
},
"permission": {
"description": "This tag identifies the permission that needs to be applied for to implement the static public event. It is a character string indicating a permission name.",
"type": "string",
"maxLength": 255
},
"types": {
"description": "This tag is used to configure the category array of the current static public event. It is a string array. Each array element is a category name.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"events": {
"description": "This tag identifies a set of event values of intentions that can be received. The value is generally predefined by the system or can be customized.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
2025-05-09 08:58:27 +08:00
},
"filter": {
"description": "This tag identifies the custom filter criteria that can be accepted.",
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"event",
"conditions"
],
"propertyNames": {
"enum": [
"event",
"conditions"
]
},
"properties": {
"event": {
"description": "This tag identifies the event value that can be filtered.",
"type": "string",
"maxLength": 64
},
"conditions": {
"description": "This tag identifies the conditions under which events can be filtered.",
"type": "object",
"propertyNames": {
"enum": [
"code",
"data",
"parameters"
]
},
"properties": {
"code": {
"description": "This label represents the code that needs to be filtered.",
"type": "integer"
},
"data": {
"description": "This label represents the data that needs to be filtered.",
"type": "string",
"maxLength": 128
},
"parameters": {
"description": "This label represents the parameters that needs to be filtered.",
"type": "object"
}
}
}
}
}
2025-01-21 11:30:03 +08:00
}
}
}
}
}
}