Skip to content

Fix external inputs breaking base parameter spreads#20062

Open
polatengin wants to merge 7 commits into
mainfrom
polatengin/19954-externalinput-for-parent-bicepparam-breaks-spread-operator-for-child-bicepparam
Open

Fix external inputs breaking base parameter spreads#20062
polatengin wants to merge 7 commits into
mainfrom
polatengin/19954-externalinput-for-parent-bicepparam-breaks-spread-operator-for-child-bicepparam

Conversation

@polatengin

@polatengin polatengin commented Jul 15, 2026

Copy link
Copy Markdown
Member

Description

Fixes #19954.

When a parent parameter file contains an externalInput, using the spread operator with another inherited parameter could fail with BCP338.

In this PR;

I've added tests that reproduce the issue with ...base.B

I've fixed the issue in ExpressionBuilder by evaluating only the selected base parameter

I've also added coverage for object and array spreads, property access, bracket access, and nested parameter files

Checklist

Microsoft Reviewers: Open in CodeFlow

@github-actions

Copy link
Copy Markdown
Contributor

Test this change out locally with the following install scripts (Action run 29442789778)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 29442789778
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 29442789778"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 29442789778
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 29442789778"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

externalInput for parent bicepparam breaks spread operator for child bicepparam

1 participant