1{ 2 "title": "JSON schema for syscap.json", 3 "$schema": "http://json-schema.org/draft-07/schema#", 4 "type": "object", 5 "additionalProperties": true, 6 "required": [ 7 "devices" 8 ], 9 "propertyNames": { 10 "enum": [ 11 "devices", 12 "development", 13 "production" 14 ] 15 }, 16 "properties": { 17 "devices": { 18 "description": "Basic system capability", 19 "type": "object", 20 "propertyNames": { 21 "enum": [ 22 "general", 23 "custom" 24 ] 25 }, 26 "properties": { 27 "general": { 28 "description": "core equipment", 29 "type": "array", 30 "items": { 31 "type": "string", 32 "enum": [ 33 "default", 34 "tv", 35 "tablet", 36 "wearable", 37 "liteWearable", 38 "car", 39 "smartVision", 40 "router" 41 ] 42 } 43 }, 44 "custom": { 45 "description": "N equipment", 46 "type":"array", 47 "items": { 48 "maxProperties": 1, 49 "minProperties": 1, 50 "type": "object", 51 "patternProperties": { 52 ".+": { 53 "type": "array", 54 "items": { 55 "type": "string", 56 "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+){0,2}$" 57 } 58 } 59 } 60 } 61 } 62 } 63 }, 64 "development": { 65 "description": "extra system capability", 66 "type": "object", 67 "propertyNames": { 68 "enum": [ 69 "addedSysCaps" 70 ] 71 }, 72 "properties": { 73 "addedSysCaps": { 74 "type": "array", 75 "items": { 76 "type": "string", 77 "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+){0,2}$" 78 } 79 } 80 } 81 }, 82 "production": { 83 "description": "generate RCPID", 84 "type": "object", 85 "propertyNames": { 86 "enum": [ 87 "addedSysCaps", 88 "removedSysCaps" 89 ] 90 }, 91 "properties": { 92 "addedSysCaps": { 93 "type": "array", 94 "items": { 95 "type": "string", 96 "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+){0,2}$" 97 } 98 }, 99 "removedSysCaps": { 100 "type": "array", 101 "items": { 102 "type": "string", 103 "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+){0,2}$" 104 } 105 } 106 } 107 } 108 } 109} 110