You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: preserve parameter declarations for names containing digits in generated README examples #405
Running avm pre-commit with Avm.Authoring 1.2.0 generates invalid Bicep parameters-file syntax in module README examples when a parameter name contains a digit.
Observed in Azure/bicep-registry-modules, module avm/res/machine-learning-services/workspace: the v1LegacyMode parameter in the max example is rendered as v1LegacyMode: false instead of param v1LegacyMode = false. Manually correcting the README is overwritten on regeneration.
Reproduction
The installed generator can be exercised directly in PowerShell:
The name capture only accepts letters, so names containing digits (or underscores) bypass conversion. The subsequent indentation removal leaves the original property declaration in the parameters-file example.
Match valid Bicep identifiers instead, for example:
Add regression cases in tests/Pester/Unit/Private/Docs/ConvertTo-AvmBicepDocsExampleParameter.Tests.ps1 for names containing digits and underscores, retaining coverage that nested object properties are not converted into parameter declarations.
Activity