tools-python icon indicating copy to clipboard operation
tools-python copied to clipboard

fix: allow underscores in git PackageDownloadLocation validation

Open Xavrir opened this issue 8 months ago • 0 comments

Summary

  • allow underscores in the repository path segment of git+git@ download locations
  • the git_pattern regex in uri_validators.py was missing _ in its allowed character class, causing valid URLs like [email protected]:zephyrproject-rtos/CMSIS_6@... to fail validation
  • consistent with the identical fix applied in the Java counterpart (spdx-java-model-2_X#33)

Testing

  • added a regression test using the exact example from the issue
  • pytest -vvs passes all 69 URI validator tests
  • isort, black, flake8 all clean

Closes #860

Xavrir avatar Mar 18 '26 14:03 Xavrir