Skip to content

Add validation for leading zeros in visual version - #577

Merged
Alexey (Demonkratiy) merged 5 commits into
microsoft:mainfrom
kullJul:dev/v-ikulagina/add-version-validation
Jul 14, 2026
Merged

Alexey (Demonkratiy) merged 5 commits into
microsoft:mainfrom
kullJul:dev/v-ikulagina/add-version-validation

Conversation

@kullJul

Copy link
Copy Markdown
Contributor

Description:

  • Adds a pre-build check that flags visual versions containing leading zeros, which are rejected by the Power BI marketplace package acceptance check.

Changes

  • New feature VisualVersionLeadingZeros (src/features/VisualVersionLeadingZeros.ts) - a [PreBuild], [Warning]-severity, certification-relevant check that fails when any version part has a leading zero (e.g. 1.16.0345.1), with guidance to use 1.16.345.1 and update [pbiviz.json].
  • src/Visual.ts - adds hasVisualVersionLeadingZeros().
  • src/features/index.ts - registers the new feature.
  • [spec/unit/FeatureManagerSpec.js] - unit tests covering versions with/without leading zeros.

Notes

  • Warning-level only; does not block builds, surfaces the issue early before marketplace submission.
  • Single commit: Add check for leading zeros in version.

Comment thread src/features/VisualVersionLeadingZeros.ts Outdated
Comment thread Changelog.md
@Demonkratiy
Alexey (Demonkratiy) merged commit 5051daf into microsoft:main Jul 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants