1{ 2 "title": "JSON schema for pages.json", 3 "$schema": "http://json-schema.org/draft-07/schema#", 4 "type": "object", 5 "additionalProperties": true, 6 "required": [ 7 "src" 8 ], 9 "propertyNames": { 10 "enum": [ 11 "src", 12 "window" 13 ] 14 }, 15 "properties": { 16 "src": { 17 "description": "Describes the route information about all pages in the JavaScript module, including the page path and page name. The value is an array, in which each element represents a page. The first element in the array represents the home page of the JavaScript FA.", 18 "type": "array", 19 "minItems": 1, 20 "uniqueItems": true, 21 "items": { 22 "type": "string" 23 } 24 }, 25 "window": { 26 "description": "Defines window-related configurations. This attribute is not supported by devices running the OHOS.", 27 "type": "object", 28 "propertyNames": { 29 "enum": [ 30 "designWidth", 31 "autoDesignWidth" 32 ] 33 }, 34 "properties": { 35 "designWidth": { 36 "description": "Indicates the baseline width for page design, in pixels. The size of an element is scaled by the actual device width. This label is an integer.", 37 "type": "integer", 38 "minimum": 0 39 }, 40 "autoDesignWidth": { 41 "description": "Specifies whether to automatically calculate the baseline width for page design. If it is set to true, the designWidth attribute becomes invalid. The baseline width is calculated based on the device width and screen density.", 42 "type": "boolean" 43 } 44 } 45 } 46 } 47} 48