1{ 2 "title": "JSON schema for routerMap.json", 3 "$schema": "http://json-schema.org/draft-07/schema#", 4 "type": "object", 5 "properties": { 6 "routerMap": { 7 "description": "Indicates the router map", 8 "type": "array", 9 "maxItems": 512, 10 "items": { 11 "type": "object", 12 "uniqueItems": true, 13 "propertyNames": { 14 "enum": [ 15 "name", 16 "pageSourceFile", 17 "buildFunction", 18 "data", 19 "customData" 20 ] 21 }, 22 "properties": { 23 "name": { 24 "description": "Indicates the name of the page that needs to be redirected", 25 "type":"string", 26 "maxLength": 1023 27 }, 28 "pageSourceFile": { 29 "description": "Indicates the file path of the current page within the module", 30 "type": "string", 31 "maxLength": 255 32 }, 33 "buildFunction": { 34 "description": "Indicates the name of the function @Builder decorated. The function describe UI of current page", 35 "type": "string", 36 "maxLength": 1023 37 }, 38 "data": { 39 "description": "Indicates the data, which can only be configured to accommodate custom data of string type.", 40 "type": "object", 41 "maxProperties": 128, 42 "additionalProperties": { 43 "type": "string" 44 } 45 }, 46 "customData": { 47 "description": "Indicates the custom data, which can be configured to accommodate any type of custom data.", 48 "type": "object" 49 } 50 }, 51 "additionalProperties": false, 52 "required": [ 53 "name", 54 "pageSourceFile", 55 "buildFunction" 56 ] 57 } 58 } 59 }, 60 "required": [ 61 "routerMap" 62 ] 63}