Skip to content

Commit

Permalink
Change Parameters/items to refer to parameter definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler committed May 8, 2024
1 parent 08a8ac3 commit be2ac38
Showing 1 changed file with 3 additions and 94 deletions.
97 changes: 3 additions & 94 deletions Microsoft.PowerShell.Crescendo/schemas/2022-06
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"Name": {
"type": "string",
"description": "The name of the parameter that PowerShell will use. If NoGap is used, include the separator in the name. 'parameter=' for parameter=value."
"description": "The name of the parameter that PowerShell will use."
},
"OriginalName": {
"type": "string",
"description": "The original parameter name used by the native command."
"description": "The original parameter name used by the native command. If NoGap is used, include the separator in the name. 'parameter=' for parameter=value."
},
"OriginalText": {
"type": "string",
Expand Down Expand Up @@ -270,98 +270,7 @@
"Parameters": {
"type": "array",
"description": "The parameters for the function.",
"items": {
"type": "object",
"required": ["Name"],
"properties": {
"ParameterType": {
"type": "string",
"description": "This the type of the parameter. It should represent an actual type. The default is 'object'."
},
"Position": {
"type": "integer",
"description": "The position of the parameter."
},
"Name": {
"description": "The name of the parameter.",
"type": "string"
},
"OriginalName": {
"description": "The name of the parameter used by the native executable. This can be null.",
"type": "string"
},
"OriginalText": {
"description": "The original text for the native parameter.",
"type": "string"
},
"Description": {
"description": "The description of the parameter to be used in help.",
"type": "string"
},
"DefaultValue": {
"type": "string",
"description": "The default value for this parameter."
},
"DefaultMissingValue": {
"type": "string",
"description": "The default value for this parameter if the parameter is not present (or is a switch parameter)."
},
"AdditionalParameterAttributes": {
"description": "Additional parameter attributes. These should take the form of [ValidateNotNullOrEmpty()], etc.",
"type": "array",
"items": {
"type": "string"
}
},
"Mandatory": {
"description": "A boolean indicating whether this parameter is mandatory.",
"type": "boolean"
},
"ParameterSetName": {
"description": "The parameter set name for this parameter.",
"type": "array",
"items": {
"type": "string"
}
},
"Aliases": {
"description": "The parameter alias.",
"type": "array",
"items": {
"type": "string"
}
},
"OriginalPosition": {
"description": "The position of the parameter for the native executable.",
"type": "integer"
},
"ValueFromPipeline": {
"description": "A boolean indicating whether this parameter accepts piped input.",
"type": "boolean"
},
"NoGap": {
"description": "A boolean indicating whether the constructed parameter should have a gap. This is for parameters which have the shape of parameter=value.",
"type": "boolean"
},
"ValueFromPipelineByPropertyName": {
"description": "A boolean indicating whether this parameter accepts piped input which binds to a property name.",
"type": "boolean"
},
"ValueFromRemainingArguments": {
"description": "A boolean indicating whether this parameter gets its value from the remaining arguments.",
"type": "boolean"
},
"ArgumentTransform": {
"description": "A scriptblock, function, or script which will be used to transform the argument value.",
"type": "string"
},
"ArgumentTransformType": {
"type": "string",
"enum": ["Inline", "Function","Script"],
"description": "The type of argument transform script, by default this is 'Inline'."
}
}
}
"items": { "$ref": "#/definitions/parameter" },
},
"Examples": {
"description": "Examples for the command.",
Expand Down

0 comments on commit be2ac38

Please sign in to comment.