Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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" | |
|
Erik does not do reviews
2010/11/16 23:43:02
minLength: 1 here too?
| |
| 45 } | |
| 46 }, | |
| 47 "icons": { | |
| 48 "type": "object", | |
| 49 "optional": true, | |
| 50 "properties": { | |
| 51 "16": { "optional": true, "type": "string", "minLength": 1 }, | |
| 52 "48": { "optional": true, "type": "string", "minLength": 1 }, | |
| 53 "128": { "optional": true, "type": "string", "minLength": 1 } | |
| 54 } | |
| 55 } | |
| 56 } | |
| 57 } | |
| OLD | NEW |