|
1 | 1 | {
|
2 |
| - "type": "object", |
3 |
| - "title": "packspec", |
4 |
| - "required": [ |
5 |
| - "package", |
6 |
| - "source" |
7 |
| - ], |
| 2 | + "additionalProperties": false, |
8 | 3 | "properties": {
|
9 |
| - "packspec": { |
10 |
| - "type": "string", |
11 |
| - "description": "The current specification version. (0.1.0) at this time.", |
12 |
| - "pattern": "^(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*$" |
13 |
| - }, |
14 |
| - "dependencies": { |
15 |
| - "patternProperties": { |
16 |
| - ".*": { |
17 |
| - "type": "object", |
18 |
| - "additionalProperties": false, |
19 |
| - "properties": { |
20 |
| - "releases_only": { |
21 |
| - "description": "Whether the package manager should only resolve version\nconstraints to include tagged releases.", |
22 |
| - "type": "boolean" |
23 |
| - }, |
24 |
| - "version": { |
25 |
| - "type": "string", |
26 |
| - "description": "Version constraints on the package.\n * Accepted operators are the relational operators of Lua:\n == \\~= < > <= >= , as well as a special operator, \\~>,\n inspired by the \"pessimistic operator\" of RubyGems\n (\"\\~> 2\" means \">= 2, < 3\"; \"~> 2.4\" means \">= 2.4, < 2.5\").\n No operator means an implicit == (i.e., \"lfs 1.0\" is the\n same as \"lfs == 1.0\"). \"lua\" is an special dependency name;\n it matches not a rock, but the version of Lua in use.\n Multiple version constraints can be joined with a `comma`,\n e.g. `\"neovim >= 5.0, < 7.0\"`.\n * If no version is specified, then HEAD is assumed valid.\n * If no upper bound is specified, then any commit after the\n tag corresponding to the lower bound is assumed valid. The\n commit chosen is up to the plugin manager's discretion, but\n implementers are strongly encouraged to always use the\n latest valid commit.\n * If an upper bound is specified, then the the tag\n corresponding to that upper bound is the latest commit that\n is valid", |
27 |
| - "pattern": "^((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*(\\s*,\\s*((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*)*$" |
28 |
| - }, |
29 |
| - "source": { |
30 |
| - "type": "string", |
31 |
| - "description": "Source of the dependency. See previous `source` description.", |
32 |
| - "pattern": "^\\w+:\/\/" |
33 |
| - } |
34 |
| - } |
35 |
| - } |
36 |
| - } |
37 |
| - }, |
38 |
| - "version": { |
39 |
| - "type": "string", |
40 |
| - "description": "The version of the package. Should obey semantic versioning\nconventions, for example `0.1.0`. Plugins should have a git commit\nwith a `tag` matching this version. For all version identifiers,\nimplementation should check for a `version` prefixed with `v` in the\ngit repository, as this is a common convention.", |
41 |
| - "pattern": "^(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*$" |
42 |
| - }, |
43 | 4 | "external_dependencies": {
|
44 |
| - "description": "Like dependencies, this specifies packages which are required for the\npackage but should *not* be managed by the Neovim package manager, such\nas `gcc` or `cmake`. Package managers are encouraged to provide a\nnotification to the user if the dependency is not available.", |
45 | 5 | "patternProperties": {
|
46 | 6 | ".*": {
|
47 |
| - "type": "object", |
48 | 7 | "additionalProperties": false,
|
49 | 8 | "properties": {
|
50 | 9 | "version": {
|
51 |
| - "type": "string", |
52 | 10 | "description": "Same as `dependencies`",
|
53 |
| - "pattern": "^((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*(\\s*,\\s*((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*)*$" |
| 11 | + "pattern": "^((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*(\\s*,\\s*((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*)*$", |
| 12 | + "type": "string" |
54 | 13 | }
|
55 |
| - } |
| 14 | + }, |
| 15 | + "type": "object" |
56 | 16 | }
|
57 |
| - } |
| 17 | + }, |
| 18 | + "description": "Like dependencies, this specifies packages which are required for the\npackage but should *not* be managed by the Neovim package manager, such\nas `gcc` or `cmake`. Package managers are encouraged to provide a\nnotification to the user if the dependency is not available." |
58 | 19 | },
|
59 |
| - "package": { |
60 |
| - "description": "The name of the package", |
| 20 | + "packspec": { |
| 21 | + "description": "The current specification version. (0.1.0) at this time.", |
| 22 | + "pattern": "^(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*$", |
61 | 23 | "type": "string"
|
62 | 24 | },
|
| 25 | + "package": { |
| 26 | + "type": "string", |
| 27 | + "description": "The name of the package" |
| 28 | + }, |
63 | 29 | "description": {
|
| 30 | + "additionalProperties": false, |
| 31 | + "description": "Description of the package", |
64 | 32 | "properties": {
|
65 | 33 | "summary": {
|
66 |
| - "description": "Short description of the package, typically less than 100 character\nlong.", |
67 |
| - "type": "string" |
| 34 | + "type": "string", |
| 35 | + "description": "Short description of the package, typically less than 100 character\nlong." |
68 | 36 | },
|
69 | 37 | "homepage": {
|
70 |
| - "description": "Homepage of the package. In most cases this will be the GitHub URL.", |
71 |
| - "type": "string" |
| 38 | + "type": "string", |
| 39 | + "description": "Homepage of the package. In most cases this will be the GitHub URL." |
| 40 | + }, |
| 41 | + "detailed": { |
| 42 | + "type": "string", |
| 43 | + "description": "Long-form description of the package, this should convey the\npackage's principal functionality to the user without being as\ndetailed as the package readme." |
| 44 | + }, |
| 45 | + "license": { |
| 46 | + "type": "string", |
| 47 | + "description": "This is [SPDX](https:\/\/spdx.org\/licenses\/) license identifier. Dual\nlicensing is indicated via joining the relevant licenses via `\/`." |
72 | 48 | },
|
73 | 49 | "author": {
|
| 50 | + "additionalProperties": false, |
| 51 | + "description": "Author of the package", |
74 | 52 | "properties": {
|
| 53 | + "email": { |
| 54 | + "type": "string", |
| 55 | + "description": "Author email" |
| 56 | + }, |
75 | 57 | "name": {
|
76 |
| - "description": "Author name", |
| 58 | + "type": "string", |
| 59 | + "description": "Author name" |
| 60 | + } |
| 61 | + }, |
| 62 | + "type": "object" |
| 63 | + } |
| 64 | + }, |
| 65 | + "type": "object" |
| 66 | + }, |
| 67 | + "version": { |
| 68 | + "description": "The version of the package. Should obey semantic versioning\nconventions, for example `0.1.0`. Plugins should have a git commit\nwith a `tag` matching this version. For all version identifiers,\nimplementation should check for a `version` prefixed with `v` in the\ngit repository, as this is a common convention.", |
| 69 | + "pattern": "^(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*$", |
| 70 | + "type": "string" |
| 71 | + }, |
| 72 | + "$schema": { |
| 73 | + "type": "string", |
| 74 | + "description": "The optional json schema URI for validation with json-language-server." |
| 75 | + }, |
| 76 | + "dependencies": { |
| 77 | + "patternProperties": { |
| 78 | + ".*": { |
| 79 | + "additionalProperties": false, |
| 80 | + "properties": { |
| 81 | + "version": { |
| 82 | + "description": "Version constraints on the package.\n * Accepted operators are the relational operators of Lua:\n == \\~= < > <= >= , as well as a special operator, \\~>,\n inspired by the \"pessimistic operator\" of RubyGems\n (\"\\~> 2\" means \">= 2, < 3\"; \"~> 2.4\" means \">= 2.4, < 2.5\").\n No operator means an implicit == (i.e., \"lfs 1.0\" is the\n same as \"lfs == 1.0\"). \"lua\" is an special dependency name;\n it matches not a rock, but the version of Lua in use.\n Multiple version constraints can be joined with a `comma`,\n e.g. `\"neovim >= 5.0, < 7.0\"`.\n * If no version is specified, then HEAD is assumed valid.\n * If no upper bound is specified, then any commit after the\n tag corresponding to the lower bound is assumed valid. The\n commit chosen is up to the plugin manager's discretion, but\n implementers are strongly encouraged to always use the\n latest valid commit.\n * If an upper bound is specified, then the the tag\n corresponding to that upper bound is the latest commit that\n is valid", |
| 83 | + "pattern": "^((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*(\\s*,\\s*((==|~=|<|>|<=|>=|~>)\\s*)?(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*)*$", |
77 | 84 | "type": "string"
|
78 | 85 | },
|
79 |
| - "email": { |
80 |
| - "description": "Author email", |
| 86 | + "releases_only": { |
| 87 | + "type": "boolean", |
| 88 | + "description": "Whether the package manager should only resolve version\nconstraints to include tagged releases." |
| 89 | + }, |
| 90 | + "source": { |
| 91 | + "description": "Source of the dependency. See previous `source` description.", |
| 92 | + "pattern": "^\\w+:\/\/", |
81 | 93 | "type": "string"
|
82 | 94 | }
|
83 | 95 | },
|
84 |
| - "type": "object", |
85 |
| - "description": "Author of the package", |
86 |
| - "additionalProperties": false |
87 |
| - }, |
88 |
| - "license": { |
89 |
| - "description": "This is [SPDX](https:\/\/spdx.org\/licenses\/) license identifier. Dual\nlicensing is indicated via joining the relevant licenses via `\/`.", |
90 |
| - "type": "string" |
91 |
| - }, |
92 |
| - "detailed": { |
93 |
| - "description": "Long-form description of the package, this should convey the\npackage's principal functionality to the user without being as\ndetailed as the package readme.", |
94 |
| - "type": "string" |
| 96 | + "type": "object" |
95 | 97 | }
|
96 |
| - }, |
97 |
| - "type": "object", |
98 |
| - "description": "Description of the package", |
99 |
| - "additionalProperties": false |
| 98 | + } |
100 | 99 | },
|
101 | 100 | "source": {
|
102 | 101 | "pattern": "^\\w+:\/\/",
|
103 |
| - "type": "string", |
104 |
| - "description": "The URL of the package source archive. Examples:\n\"http:\/\/github.com\/downloads\/keplerproject\/wsapi\/wsapi-1.3.4.tar.gz\",\n\"git:\/\/github.com\/keplerproject\/wsapi.git\". Different protocols are\nsupported:\n\n * `luarocks:\/\/` - for luarocks packages\n * `file:\/\/` - for URLs in the local filesystem (note that for Unix\n paths, the root slash is the third slash, resulting in paths like\n \"file:\/\/\/full\/path\/filename\"\n * `git:\/\/` - for the Git source control manager\n * `git+https:\/\/` - for the Git source control manager when using\n repositories that need https:\/\/ URLs.\n * `git+ssh:\/\/` - for the Git source control manager when using\n repositories that need SSH login, such as [email protected]\/myrepo.\n * `http:\/\/` - for HTTP URLs\n * `https:\/\/` - for HTTPS URLs", |
105 | 102 | "examples": [
|
106 | 103 | "luarocks:\/\/argparse",
|
107 | 104 | "git:\/\/github.com\/nvim-lua\/plenary.nvim"
|
108 |
| - ] |
109 |
| - }, |
110 |
| - "$schema": { |
111 |
| - "description": "The optional json schema URI for validation with json-language-server.", |
| 105 | + ], |
| 106 | + "description": "The URL of the package source archive. Examples:\n\"http:\/\/github.com\/downloads\/keplerproject\/wsapi\/wsapi-1.3.4.tar.gz\",\n\"git:\/\/github.com\/keplerproject\/wsapi.git\". Different protocols are\nsupported:\n\n * `luarocks:\/\/` - for luarocks packages\n * `file:\/\/` - for URLs in the local filesystem (note that for Unix\n paths, the root slash is the third slash, resulting in paths like\n \"file:\/\/\/full\/path\/filename\"\n * `git:\/\/` - for the Git source control manager\n * `git+https:\/\/` - for the Git source control manager when using\n repositories that need https:\/\/ URLs.\n * `git+ssh:\/\/` - for the Git source control manager when using\n repositories that need SSH login, such as [email protected]\/myrepo.\n * `http:\/\/` - for HTTP URLs\n * `https:\/\/` - for HTTPS URLs", |
112 | 107 | "type": "string"
|
113 | 108 | }
|
114 | 109 | },
|
115 |
| - "additionalProperties": false, |
116 |
| - "description": "A package specification for Neovim" |
| 110 | + "title": "packspec", |
| 111 | + "description": "A package specification for Neovim", |
| 112 | + "required": [ |
| 113 | + "package", |
| 114 | + "source" |
| 115 | + ], |
| 116 | + "type": "object" |
117 | 117 | }
|
0 commit comments