Add PURL_TYPES and enforce validation of PURL types#188
Add PURL_TYPES and enforce validation of PURL types#188kdeldycke wants to merge 1 commit intopackage-url:mainfrom
PURL_TYPES and enforce validation of PURL types#188Conversation
PURL_TYPES and enforce validation of PackageURL typesPURL_TYPES and enforce validation of pURL types
|
An improvement of this PR would be to use a
|
PURL_TYPES and enforce validation of pURL typesPURL_TYPES and enforce validation of PURL types
|
This PR needs to be reset to reflect the deprecation of https://github.com/package-url/purl-spec/blob/main/PURL-TYPES.rst |
d2b0d79 to
476f26b
Compare
Thanks @mjherzog for the feedback and sorry for the delay. Just updated and synced the inventory of recognized types with the content of https://github.com/package-url/purl-spec/tree/main/types . Used that opportunity to cleanup and fix the now-failing tests. This PR is ready to be reviewed and the workflow run to demonstrate the test results. |
b681875 to
f655de8
Compare
f655de8 to
ede314a
Compare
This PR adds a comprehensive list of all pURL types that are referenced in https://github.com/package-url/purl-spec/blob/main/types
It also enforces the validation of a pURL type.
This PR use the current
specsubmodule pinned toc398646as the source of truth (see #209 for other concerns about that submodule). And adds a unit-tests to enforce the cohesion between these pinned specs and the pURL types supported by this library.For context, I made this list for my Meta Package Manager project, which is mapping pURL types to package managers.
Closes: #155 #181