Skip to content
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

Generated bicepParams file is not correct for the following cases #16245

Open
ouldsid opened this issue Jan 30, 2025 · 0 comments
Open

Generated bicepParams file is not correct for the following cases #16245

ouldsid opened this issue Jan 30, 2025 · 0 comments

Comments

@ouldsid
Copy link
Member

ouldsid commented Jan 30, 2025

          One additional behavior change this will introduce is that a default of `""` will be used for any parameter using a user-defined type if I'm reading this correctly. For example, I believe the following template:
param foo {
  requiredProperty: string
  optionalProperty: string?
}

will generate a .bicepparam file of

param foo = ''

Originally posted by @jeskew in #16237 (comment)
used bicep file : param foo {
requiredProperty: string
optionalProperty: string?
}
Result of generating the BicepParmas:
using './test3.bicep'

param foo =

2 when the type is int
content of the used file :
type foo = int
param bar foo
Result
using './test3.bicep'
param bar = ''
should be
using './test3.bicep'
param bar = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant