|
33 | 33 | "description": "Whether to create a symlink to the bin instead of copying it." |
34 | 34 | }, |
35 | 35 | "vars": { |
36 | | - "additionalProperties": { |
37 | | - "type": "string" |
| 36 | + "patternProperties": { |
| 37 | + ".*": { |
| 38 | + "type": "string" |
| 39 | + } |
38 | 40 | }, |
39 | 41 | "type": "object", |
40 | 42 | "description": "A list of variables that can be used in 'url', 'archive_path' and 'bin'.\n\nTwo variables are always added based on the current environment: 'os' and 'arch'. Those are the operating\nsystem and architecture as defined by go's GOOS and GOARCH variables. I should document what those are\nsomewhere.\n\nYou can reference a variable using golang template syntax. For example, you could have a url set to\n`https://example.org/mydependency/v{{.version}}/mydependency-{{.os}}-{{.arch}}.tar.gz`. If you define the var\n'version: 1.2.3' and run bindown on a 64-bit Linux system, it will download\n`https://example.org/mydependency/v1.2.3/mydependency-linux-amd64.tar.gz`." |
|
47 | 49 | "description": "Overrides allows you to override values depending on the os and architecture of the target system." |
48 | 50 | }, |
49 | 51 | "substitutions": { |
50 | | - "additionalProperties": { |
51 | | - "additionalProperties": { |
52 | | - "type": "string" |
53 | | - }, |
54 | | - "type": "object" |
| 52 | + "patternProperties": { |
| 53 | + ".*": { |
| 54 | + "patternProperties": { |
| 55 | + ".*": { |
| 56 | + "type": "string" |
| 57 | + } |
| 58 | + }, |
| 59 | + "type": "object" |
| 60 | + } |
55 | 61 | }, |
56 | 62 | "type": "object", |
57 | 63 | "description": "Substitutions will substitute values from vars. The key is the name of the variable to substitute. The value is\na map of substitutions. { \"os\": { \"linux\": \"Linux\", \"darwin\": \"MacOS\" } } is an example of a substitution that\nwill update the os variable." |
|
77 | 83 | "DependencyOverride": { |
78 | 84 | "properties": { |
79 | 85 | "matcher": { |
80 | | - "additionalProperties": { |
81 | | - "items": { |
82 | | - "type": "string" |
83 | | - }, |
84 | | - "type": "array" |
| 86 | + "patternProperties": { |
| 87 | + ".*": { |
| 88 | + "items": { |
| 89 | + "type": "string" |
| 90 | + }, |
| 91 | + "type": "array" |
| 92 | + } |
85 | 93 | }, |
86 | 94 | "type": "object", |
87 | 95 | "description": "Limits the override to configurations matching all of the matchers. Keys may be \"os\", \"arch\" or any variable name.\nValues are an array of values to match. Any matching value will match. If a value can be interpreted as a\nsemantic version it will be treated as such." |
|
117 | 125 | "description": "Whether to create a symlink to the bin instead of copying it." |
118 | 126 | }, |
119 | 127 | "vars": { |
120 | | - "additionalProperties": { |
121 | | - "type": "string" |
| 128 | + "patternProperties": { |
| 129 | + ".*": { |
| 130 | + "type": "string" |
| 131 | + } |
122 | 132 | }, |
123 | 133 | "type": "object", |
124 | 134 | "description": "A list of variables that can be used in 'url', 'archive_path' and 'bin'.\n\nTwo variables are always added based on the current environment: 'os' and 'arch'. Those are the operating\nsystem and architecture as defined by go's GOOS and GOARCH variables. I should document what those are\nsomewhere.\n\nYou can reference a variable using golang template syntax. For example, you could have a url set to\n`https://example.org/mydependency/v{{.version}}/mydependency-{{.os}}-{{.arch}}.tar.gz`. If you define the var\n'version: 1.2.3' and run bindown on a 64-bit Linux system, it will download\n`https://example.org/mydependency/v1.2.3/mydependency-linux-amd64.tar.gz`." |
|
131 | 141 | "description": "Overrides allows you to override values depending on the os and architecture of the target system." |
132 | 142 | }, |
133 | 143 | "substitutions": { |
134 | | - "additionalProperties": { |
135 | | - "additionalProperties": { |
136 | | - "type": "string" |
137 | | - }, |
138 | | - "type": "object" |
| 144 | + "patternProperties": { |
| 145 | + ".*": { |
| 146 | + "patternProperties": { |
| 147 | + ".*": { |
| 148 | + "type": "string" |
| 149 | + } |
| 150 | + }, |
| 151 | + "type": "object" |
| 152 | + } |
139 | 153 | }, |
140 | 154 | "type": "object", |
141 | 155 | "description": "Substitutions will substitute values from vars. The key is the name of the variable to substitute. The value is\na map of substitutions. { \"os\": { \"linux\": \"Linux\", \"darwin\": \"MacOS\" } } is an example of a substitution that\nwill update the os variable." |
|
162 | 176 | "description": "List of systems supported by this config. Systems are in the form of os/architecture." |
163 | 177 | }, |
164 | 178 | "dependencies": { |
165 | | - "additionalProperties": { |
166 | | - "$ref": "#/$defs/Dependency" |
| 179 | + "patternProperties": { |
| 180 | + ".*": { |
| 181 | + "$ref": "#/$defs/Dependency" |
| 182 | + } |
167 | 183 | }, |
168 | 184 | "type": "object", |
169 | 185 | "description": "Dependencies available for bindown to install." |
170 | 186 | }, |
171 | 187 | "templates": { |
172 | | - "additionalProperties": { |
173 | | - "$ref": "#/$defs/Dependency" |
| 188 | + "patternProperties": { |
| 189 | + ".*": { |
| 190 | + "$ref": "#/$defs/Dependency" |
| 191 | + } |
174 | 192 | }, |
175 | 193 | "type": "object", |
176 | 194 | "description": "Templates that can be used by dependencies in this file." |
177 | 195 | }, |
178 | 196 | "template_sources": { |
179 | | - "additionalProperties": { |
180 | | - "type": "string" |
| 197 | + "patternProperties": { |
| 198 | + ".*": { |
| 199 | + "type": "string" |
| 200 | + } |
181 | 201 | }, |
182 | 202 | "type": "object", |
183 | 203 | "description": "Upstream sources for templates." |
184 | 204 | }, |
185 | 205 | "url_checksums": { |
186 | | - "additionalProperties": { |
187 | | - "type": "string" |
| 206 | + "patternProperties": { |
| 207 | + ".*": { |
| 208 | + "type": "string" |
| 209 | + } |
188 | 210 | }, |
189 | 211 | "type": "object", |
190 | 212 | "description": "Checksums of downloaded files." |
|
0 commit comments