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 "events" 29 ] 30 }, 31 "properties": { 32 "name": { 33 "description": "This label indicates the ability name corresponding to the current static public event.", 34 "type": "string", 35 "maxLength": 127 36 }, 37 "permission": { 38 "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.", 39 "type": "string", 40 "maxLength": 255 41 }, 42 "events": { 43 "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.", 44 "type": "array", 45 "uniqueItems": true, 46 "items": { 47 "type": "string" 48 } 49 } 50 } 51 } 52 } 53 } 54}