|
| 1 | +{ |
| 2 | + "type": "object", |
| 3 | + "name": "CommonJS Package Descriptor File 1.0", |
| 4 | + "description": "Note that this is incomplete. See http://wiki.commonjs.org/wiki/Packages/1.0 for the complete spec.", |
| 5 | + "summaryProperties": ["name", "version"], |
| 6 | + "properties": { |
| 7 | + "name": { |
| 8 | + "type": "string", |
| 9 | + "required": true, |
| 10 | + "description": "The name of the package. This must be a unique, lowercase alpha-numeric name without spaces. It may include \".\" or \"_\" or \"-\" characters. It is otherwise opaque." |
| 11 | + }, |
| 12 | + "description": { |
| 13 | + "type": "string", |
| 14 | + "required": true, |
| 15 | + "format": "multiline", |
| 16 | + "description": "A brief description of the package. By convention, the first sentence (up to the first \". \") should be usable as a package title in listings." |
| 17 | + }, |
| 18 | + "version": { |
| 19 | + "type": "string", |
| 20 | + "required": true, |
| 21 | + "format": "semver", |
| 22 | + "description": "Version string conforming to the Semantic Versioning requirements (http://semver.org/)." |
| 23 | + }, |
| 24 | + "keywords": { |
| 25 | + "type": "array", |
| 26 | + "required": true, |
| 27 | + "items": { "type": "string" }, |
| 28 | + "description": "An Array of string keywords to assist users searching for the package in catalogs." |
| 29 | + }, |
| 30 | + "maintainers": { |
| 31 | + "type": "array", |
| 32 | + "required": true, |
| 33 | + "items": { |
| 34 | + "type": "object", |
| 35 | + "name": "person", |
| 36 | + "properties": { |
| 37 | + "name": { "type": "string", "required": true }, |
| 38 | + "email": { "type": "string" }, |
| 39 | + "web": { "type": "string" } |
| 40 | + } |
| 41 | + }, |
| 42 | + "description": "Array of maintainers of the package. Each maintainer is a hash which must have a \"name\" property and may optionally provide \"email\" and \"web\" properties." |
| 43 | + }, |
| 44 | + "contributors": { |
| 45 | + "type": "array", |
| 46 | + "required": true, |
| 47 | + "items": [{ "type": "string", "name": "person-name" }, { |
| 48 | + "type": "object", |
| 49 | + "name": "person", |
| 50 | + "properties": { |
| 51 | + "name": { "type": "string", "required": true }, |
| 52 | + "email": { "type": "string" }, |
| 53 | + "web": { "type": "string" } |
| 54 | + } |
| 55 | + }], |
| 56 | + "description": "An Array of hashes each containing the details of a contributor. Format is the same as for author. By convention, the first contributor is the original author of the package." |
| 57 | + }, |
| 58 | + "bugs": { |
| 59 | + "type": "object", |
| 60 | + "additionalProperties": "string", |
| 61 | + "required": true, |
| 62 | + "description": "URL for submitting bugs. Can be mailto or http." |
| 63 | + }, |
| 64 | + "licenses": { |
| 65 | + "type": "array", |
| 66 | + "required": true, |
| 67 | + "items": { |
| 68 | + "type": "object", |
| 69 | + "properties": { |
| 70 | + "type": { "type": "string", "required": true }, |
| 71 | + "url": { "type": "string" } |
| 72 | + } |
| 73 | + }, |
| 74 | + "description": "Array of licenses under which the package is provided." |
| 75 | + }, |
| 76 | + "repositories": { |
| 77 | + "required": true, |
| 78 | + "description": "Array of repositories where the package can be located.", |
| 79 | + "type": "array", |
| 80 | + "items": { |
| 81 | + "type": "object", |
| 82 | + "summaryProperties": ["type", "url"], |
| 83 | + "properties": { |
| 84 | + "type": { "type": "string", "required": true }, |
| 85 | + "url": { "type": "string", "required": true }, |
| 86 | + "path": { "type": "string", "description": "Specified to locate the package in the repository if it does not reside at the root." } |
| 87 | + } |
| 88 | + } |
| 89 | + }, |
| 90 | + "dependencies": { |
| 91 | + "required": true, |
| 92 | + "description": "Prerequisite packages on which this package depends in order to install and run.", |
| 93 | + "type": "object", |
| 94 | + "additionalProperties": [ |
| 95 | + "string", |
| 96 | + { |
| 97 | + "type": "object", |
| 98 | + "name": "depgroups", |
| 99 | + "additionalProperties": ["string", { "type": "array", "name": "verlist", "items": "string" }] |
| 100 | + } |
| 101 | + ] |
| 102 | + } |
| 103 | + } |
| 104 | +} |
0 commit comments