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 "filter" 31 ] 32 }, 33 "properties": { 34 "name": { 35 "description": "This label indicates the ability name corresponding to the current static public event.", 36 "type": "string", 37 "maxLength": 127 38 }, 39 "permission": { 40 "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.", 41 "type": "string", 42 "maxLength": 255 43 }, 44 "types": { 45 "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.", 46 "type": "array", 47 "uniqueItems": true, 48 "items": { 49 "type": "string" 50 } 51 }, 52 "events": { 53 "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.", 54 "type": "array", 55 "uniqueItems": true, 56 "items": { 57 "type": "string" 58 } 59 }, 60 "filter": { 61 "description": "This tag identifies the custom filter criteria that can be accepted.", 62 "type": "array", 63 "uniqueItems": true, 64 "items": { 65 "type": "object", 66 "required": [ 67 "event", 68 "conditions" 69 ], 70 "propertyNames": { 71 "enum": [ 72 "event", 73 "conditions" 74 ] 75 }, 76 "properties": { 77 "event": { 78 "description": "This tag identifies the event value that can be filtered.", 79 "type": "string", 80 "maxLength": 64 81 }, 82 "conditions": { 83 "description": "This tag identifies the conditions under which events can be filtered.", 84 "type": "object", 85 "propertyNames": { 86 "enum": [ 87 "code", 88 "data", 89 "parameters" 90 ] 91 }, 92 "properties": { 93 "code": { 94 "description": "This label represents the code that needs to be filtered.", 95 "type": "integer" 96 }, 97 "data": { 98 "description": "This label represents the data that needs to be filtered.", 99 "type": "string", 100 "maxLength": 128 101 }, 102 "parameters": { 103 "description": "This label represents the parameters that needs to be filtered.", 104 "type": "object" 105 } 106 } 107 } 108 } 109 } 110 } 111 } 112 } 113 } 114 } 115}