|
14 | 14 | }, |
15 | 15 | "Name": { |
16 | 16 | "type": "string", |
17 | | - "description": "The name of the parameter that PowerShell will use. If NoGap is used, include the separator in the name. 'parameter=' for parameter=value." |
| 17 | + "description": "The name of the parameter that PowerShell will use." |
18 | 18 | }, |
19 | 19 | "OriginalName": { |
20 | 20 | "type": "string", |
21 | | - "description": "The original parameter name used by the native command." |
| 21 | + "description": "The original parameter name used by the native command. If NoGap is used, include the separator in the name. 'parameter=' for parameter=value." |
22 | 22 | }, |
23 | 23 | "OriginalText": { |
24 | 24 | "type": "string", |
|
270 | 270 | "Parameters": { |
271 | 271 | "type": "array", |
272 | 272 | "description": "The parameters for the function.", |
273 | | - "items": { |
274 | | - "type": "object", |
275 | | - "required": ["Name"], |
276 | | - "properties": { |
277 | | - "ParameterType": { |
278 | | - "type": "string", |
279 | | - "description": "This the type of the parameter. It should represent an actual type. The default is 'object'." |
280 | | - }, |
281 | | - "Position": { |
282 | | - "type": "integer", |
283 | | - "description": "The position of the parameter." |
284 | | - }, |
285 | | - "Name": { |
286 | | - "description": "The name of the parameter.", |
287 | | - "type": "string" |
288 | | - }, |
289 | | - "OriginalName": { |
290 | | - "description": "The name of the parameter used by the native executable. This can be null.", |
291 | | - "type": "string" |
292 | | - }, |
293 | | - "OriginalText": { |
294 | | - "description": "The original text for the native parameter.", |
295 | | - "type": "string" |
296 | | - }, |
297 | | - "Description": { |
298 | | - "description": "The description of the parameter to be used in help.", |
299 | | - "type": "string" |
300 | | - }, |
301 | | - "DefaultValue": { |
302 | | - "type": "string", |
303 | | - "description": "The default value for this parameter." |
304 | | - }, |
305 | | - "DefaultMissingValue": { |
306 | | - "type": "string", |
307 | | - "description": "The default value for this parameter if the parameter is not present (or is a switch parameter)." |
308 | | - }, |
309 | | - "AdditionalParameterAttributes": { |
310 | | - "description": "Additional parameter attributes. These should take the form of [ValidateNotNullOrEmpty()], etc.", |
311 | | - "type": "array", |
312 | | - "items": { |
313 | | - "type": "string" |
314 | | - } |
315 | | - }, |
316 | | - "Mandatory": { |
317 | | - "description": "A boolean indicating whether this parameter is mandatory.", |
318 | | - "type": "boolean" |
319 | | - }, |
320 | | - "ParameterSetName": { |
321 | | - "description": "The parameter set name for this parameter.", |
322 | | - "type": "array", |
323 | | - "items": { |
324 | | - "type": "string" |
325 | | - } |
326 | | - }, |
327 | | - "Aliases": { |
328 | | - "description": "The parameter alias.", |
329 | | - "type": "array", |
330 | | - "items": { |
331 | | - "type": "string" |
332 | | - } |
333 | | - }, |
334 | | - "OriginalPosition": { |
335 | | - "description": "The position of the parameter for the native executable.", |
336 | | - "type": "integer" |
337 | | - }, |
338 | | - "ValueFromPipeline": { |
339 | | - "description": "A boolean indicating whether this parameter accepts piped input.", |
340 | | - "type": "boolean" |
341 | | - }, |
342 | | - "NoGap": { |
343 | | - "description": "A boolean indicating whether the constructed parameter should have a gap. This is for parameters which have the shape of parameter=value.", |
344 | | - "type": "boolean" |
345 | | - }, |
346 | | - "ValueFromPipelineByPropertyName": { |
347 | | - "description": "A boolean indicating whether this parameter accepts piped input which binds to a property name.", |
348 | | - "type": "boolean" |
349 | | - }, |
350 | | - "ValueFromRemainingArguments": { |
351 | | - "description": "A boolean indicating whether this parameter gets its value from the remaining arguments.", |
352 | | - "type": "boolean" |
353 | | - }, |
354 | | - "ArgumentTransform": { |
355 | | - "description": "A scriptblock, function, or script which will be used to transform the argument value.", |
356 | | - "type": "string" |
357 | | - }, |
358 | | - "ArgumentTransformType": { |
359 | | - "type": "string", |
360 | | - "enum": ["Inline", "Function","Script"], |
361 | | - "description": "The type of argument transform script, by default this is 'Inline'." |
362 | | - } |
363 | | - } |
364 | | - } |
| 273 | + "items": { "$ref": "#/definitions/parameter" }, |
365 | 274 | }, |
366 | 275 | "Examples": { |
367 | 276 | "description": "Examples for the command.", |
|
0 commit comments