Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PackageUrlFactory omit empty ext-ref urls #180

Merged
merged 1 commit into from
Aug 16, 2022

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.

None yet

1 participant