Skip to content

fix: PackageUrlFactory omit empty ext-ref urls#180

Merged
jkowalleck merged 1 commit intomainfrom
packageUrl-factory-skip-empty-extRefs
Aug 16, 2022
Merged

fix: PackageUrlFactory omit empty ext-ref urls#180
jkowalleck merged 1 commit intomainfrom
packageUrl-factory-skip-empty-extRefs

Conversation

@jkowalleck
Copy link
Member

Factories.PackageUrlFactory omits empty-string URLs for PackageUrl's qualifiers download_url & vcs_url.

just omit empty urls ... No further need for validation.
According to https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst there is no formal requirement to a ..._url.
Everything is possible: URL-encoded, not encoded, with schema, without schema

@jkowalleck jkowalleck requested a review from a team as a code owner August 16, 2022 07:36
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the packageUrl-factory-skip-empty-extRefs branch from 71f3ba9 to 47897ec Compare August 16, 2022 07:37
@jkowalleck jkowalleck merged commit 12d196f into main Aug 16, 2022
@jkowalleck jkowalleck deleted the packageUrl-factory-skip-empty-extRefs branch August 16, 2022 07:45
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.

1 participant