1{ 2 "title": "JSON schema for commonEvents.json", 3 "$schema": "http://json-schema.org/draft-07/schema#", 4 "type": "object", 5 "additionalProperties": true, 6 "required": [ 7 "commonEvents" 8 ], 9 "propertyNames": { 10 "enum": [ 11 "commonEvents" 12 ] 13 }, 14 "properties": { 15 "commonEvents": { 16 "description": "This tag and subtag are not supported on lightweight devices.", 17 "type": "array", 18 "items": { 19 "type": "object", 20 "required": [ 21 "name", 22 "events" 23 ], 24 "propertyNames": { 25 "enum": [ 26 "name", 27 "permission", 28 "types", 29 "events" 30 ] 31 }, 32 "properties": { 33 "name": { 34 "description": "This label indicates the ability name corresponding to the current static public event.", 35 "type": "string", 36 "maxLength": 127 37 }, 38 "permission": { 39 "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.", 40 "type": "string", 41 "maxLength": 255 42 }, 43 "types": { 44 "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.", 45 "type": "array", 46 "uniqueItems": true, 47 "items": { 48 "type": "string" 49 } 50 }, 51 "events": { 52 "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.", 53 "type": "array", 54 "uniqueItems": true, 55 "items": { 56 "type": "string" 57 } 58 } 59 } 60 } 61 } 62 } 63}