You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails with the above mentioned error. The reason seems to be naming conflicts with the internal pipeline the generated code is using:
/// <summary>/// The instance of the <see cref="Sample.API.Runtime.HttpPipeline" /> that the remote call will use./// </summary>publicSample.API.Runtime.HttpPipelinePipeline{get;set;}/// <summary>Anything</summary>[global::System.Management.Automation.Parameter(Mandatory=true,HelpMessage="Anything",ValueFromPipeline=true)][Sample.API.Runtime.Info(Required=true,ReadOnly=false,Description=@"Anything",SerializedName=@"pipeline",PossibleTypes=new[]{typeof(Sample.API.Models.IAny)})][global::Sample.API.Category(global::Sample.API.ParameterCategory.Body)]publicSample.API.Models.IAnyPipeline{get=>this._pipeline;set=>this._pipeline = value;}
Expected behavior
If we rename the parameter to anything other than pipeline, the module builds just fine.
Additional context
We have an ARM resource named pipeline and we would like to preserve the naming to maintain UX consistency.
Attached the erroring generated file for reference. (Sorry, GitHub does not allow .cs files, so renamed to .txt) SetResource_Put.txt
The text was updated successfully, but these errors were encountered:
Before filling a bug
Describe the bug
When I have a parameter named pipeline in the OpenAPI spec, trying to build PowerShell cmdlets fails with this error:
To reproduce, here is a minimal OpenAPI spec:
Sample README file:
PS commands:
This fails with the above mentioned error. The reason seems to be naming conflicts with the internal pipeline the generated code is using:
Expected behavior
If we rename the parameter to anything other than
pipeline
, the module builds just fine.Additional context
We have an ARM resource named pipeline and we would like to preserve the naming to maintain UX consistency.
Attached the erroring generated file for reference. (Sorry, GitHub does not allow
.cs
files, so renamed to.txt
)SetResource_Put.txt
The text was updated successfully, but these errors were encountered: