1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // This file contains the schema for web app defintion files. 6 7 { 8 "type": "object", 9 "properties": { 10 // TODO(aa): Need to figure out what max length the store is using for name 11 // and description. 12 "name": { 13 "type": "string", 14 "minLength": 1, 15 "maxLength": 45 16 }, 17 "description": { 18 "type": "string", 19 "maxLength": 132, 20 "optional": true 21 }, 22 "launch_url": { 23 "type": "string", 24 "minLength": 1 25 }, 26 "launch_container": { 27 "enum": ["tab", "panel"], 28 "optional": true 29 }, 30 // TODO(aa): We had problems with a simple array of strings in extensions. 31 // Consider something else. 32 "permissions": { 33 "type": "array", 34 "optional": true, 35 "items": { 36 "type": "string", 37 "minLength": 1 38 } 39 }, 40 "urls": { 41 "type": "array", 42 "optional": true, 43 "items": { 44 "type": "string", 45 "minLength": 1 46 } 47 }, 48 "icons": { 49 "type": "object", 50 "optional": true, 51 "properties": { 52 "16": { "optional": true, "type": "string", "minLength": 1 }, 53 "48": { "optional": true, "type": "string", "minLength": 1 }, 54 "128": { "optional": true, "type": "string", "minLength": 1 } 55 } 56 } 57 } 58 } 59