@@ -14,52 +14,52 @@ function Convert-BicepConfigToInputConfig {
1414 if ($PSCmdlet.ShouldProcess (" Parse Interface Variables into Config" , " modify" )) {
1515
1616 $configItems = [PSCustomObject ]@ {}
17- if ($appendToObject -ne $null ) {
17+ if ($appendToObject -ne $null ) {
1818 $configItems = $appendToObject
1919 }
2020
2121 Write-Verbose $validators
2222
23- foreach ($variable in $bicepConfig.inputs.PSObject.Properties ) {
23+ foreach ($variable in $bicepConfig.inputs.PSObject.Properties ) {
2424 Write-Verbose " Parsing variable $ ( $variable.Name ) "
2525 $description = $variable.Value.description
2626
2727 $configItem = [PSCustomObject ]@ {}
2828 $configItem | Add-Member - NotePropertyName " Source" - NotePropertyValue $variable.Value.source
2929 $configItem | Add-Member - NotePropertyName " Value" - NotePropertyValue " "
3030
31- if ($variable.Value.PSObject.Properties.Name -contains " sourceInput" ) {
31+ if ($variable.Value.PSObject.Properties.Name -contains " sourceInput" ) {
3232 $configItem | Add-Member - NotePropertyName " SourceInput" - NotePropertyValue $variable.Value.sourceInput
3333 }
3434
35- if ($variable.Value.PSObject.Properties.Name -contains " pattern" ) {
35+ if ($variable.Value.PSObject.Properties.Name -contains " pattern" ) {
3636 $configItem | Add-Member - NotePropertyName " Pattern" - NotePropertyValue $variable.Value.pattern
3737 }
3838
39- if ($variable.Value.PSObject.Properties.Name -contains " process" ) {
39+ if ($variable.Value.PSObject.Properties.Name -contains " process" ) {
4040 $configItem | Add-Member - NotePropertyName " Process" - NotePropertyValue $variable.Value.process
4141 }
4242
43- if ($variable.Value.PSObject.Properties.Name -contains " default" ) {
43+ if ($variable.Value.PSObject.Properties.Name -contains " default" ) {
4444 $defaultValue = $variable.Value.default
4545 $configItem | Add-Member - NotePropertyName " DefaultValue" - NotePropertyValue $defaultValue
4646 }
4747
48- if ($variable.Value.PSObject.Properties.Name -contains " validation" ) {
48+ if ($variable.Value.PSObject.Properties.Name -contains " validation" ) {
4949 $validationType = $variable.Value.validation
5050 $validator = $validators.PSObject.Properties [$validationType ].Value
5151 $description = " $description ($ ( $validator.Description ) )"
5252 Write-Verbose " Adding $ ( $variable.Value.validation ) validation for $ ( $variable.Name ) . Validation type: $ ( $validator.Type ) "
53- if ($validator.Type -eq " AllowedValues" ){
53+ if ($validator.Type -eq " AllowedValues" ) {
5454 $configItem | Add-Member - NotePropertyName " AllowedValues" - NotePropertyValue $validator.AllowedValues
5555 }
56- if ($validator.Type -eq " Valid" ){
56+ if ($validator.Type -eq " Valid" ) {
5757 $configItem | Add-Member - NotePropertyName " Valid" - NotePropertyValue $validator.Valid
5858 }
5959 $configItem | Add-Member - NotePropertyName " Validator" - NotePropertyValue $validationType
6060 }
6161
62- if ($variable.Value.PSObject.Properties.Name -contains " targets" ) {
62+ if ($variable.Value.PSObject.Properties.Name -contains " targets" ) {
6363 $configItem | Add-Member - NotePropertyName " targets" - NotePropertyValue $variable.Value.targets
6464 }
6565
@@ -69,4 +69,4 @@ function Convert-BicepConfigToInputConfig {
6969 }
7070
7171 return $configItems
72- }
72+ }
0 commit comments