Skip to content

No warning/error for type mismatch for extendable bicepparam values #16731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
levimatheri opened this issue Mar 25, 2025 · 0 comments · May be fixed by #17193
Open

No warning/error for type mismatch for extendable bicepparam values #16731

levimatheri opened this issue Mar 25, 2025 · 0 comments · May be fixed by #17193

Comments

@levimatheri
Copy link
Contributor

levimatheri commented Mar 25, 2025

Bicep version
v0.34.44

Describe the bug
If the wrong type is used in the "root" bicepparam, but the param is not overridden in the "leaf" bicepparam, no warnings/errors are surfaced.

To Reproduce
main.bicep

param tag string

root.bicepparam

using none

param tag = false // type mismatch

leaf.bicepparam

using 'main.bicep'

extends 'root.bicepparam'  // expecting some kind of warning/error here

_Compiled leaf.parameters.json

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "tag": {
      "value": false
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

3 participants