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
purl-next: Update the PURL library for Python with extended validation - batch 1 #45
Activity
TG1999 commentedon Aug 15, 2025
Add a
validatemethod for a PackageURL object, it will yield the error messages as in: https://github.com/aboutcode-org/scancode-toolkit/blob/c9015f8bf3974e11c5997ebba882d65985a0b6f4/src/licensedcode/models.py#L1912The validation should come from the JSON type definition, like for cargo: https://github.com/package-url/purl-spec/blob/main/types/cargo-definition.json
For cargo having a namespace is an error for example
pombredanne commentedon Aug 31, 2025
This has been completed and merged with: