File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,10 @@ public void Basic_WhenJsonFileIsProvided_DocumentationShouldBeGenerated()
1313 {
1414 Program . Main ( [ "--template" , "templates/json/basic.json" ] ) ;
1515 }
16+
17+ [ Test ]
18+ public void Basic_WhenBicepFileIsProvidedWithBooleanValueForParameter_DocumentationShouldBeGenerated ( )
19+ {
20+ Program . Main ( [ "--template" , "templates/keyvault/main.bicep" ] ) ;
21+ }
1622}
Original file line number Diff line number Diff line change 1+ @description ('Create a Key Vault with the specified location' )
2+ @allowed ([ 'eastus' , 'westus' , 'centralus' ])
3+ param parLocation string = 'eastus'
4+
5+ @description ('Enable the Key Vault for deployment' )
6+ param parEnabledForDeployment bool = true
7+
8+ resource kv 'Microsoft.KeyVault/vaults@2023-07-01' = {
9+ name : 'kv'
10+ location : parLocation
11+ properties : {
12+ sku : {
13+ family : 'A'
14+ name : 'standard'
15+ }
16+ tenantId : tenant ().tenantId
17+ enabledForDeployment : parEnabledForDeployment
18+ }
19+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ internal class TemplateParameter
2323 public string Type { get ; set ; } = null ! ;
2424
2525 [ JsonPropertyName ( "defaultValue" ) ]
26- public string ? DefaultValue { get ; set ; }
26+ public object ? DefaultValue { get ; set ; }
2727
2828 [ JsonPropertyName ( "allowedValues" ) ]
2929 public string [ ] ? AllowedValues { get ; set ; }
You can’t perform that action at this time.
0 commit comments