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

Handle qualifiers with a string value #4

Open
steven-esser opened this issue Dec 29, 2018 · 2 comments
Open

Handle qualifiers with a string value #4

steven-esser opened this issue Dec 29, 2018 · 2 comments

Comments

@steven-esser
Copy link
Collaborator

Currently we throw an exception when creating a packageURL with qualifiers that are strings.

The python version currently handles this, so the JS version should as well.

@Omkaragrawal
Copy link

Omkaragrawal commented Mar 27, 2019

Hey,
Does creating Purl with qualifiers that are string means something like:

pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?repository_url=repo.spring.io/\"release\"
or something similar?
Sorry to ask if this is a silly question.

@jkowalleck
Copy link
Contributor

Qualifiers are expected to be a dictionary of strings. see https://github.com/package-url/packageurl-js/blob/9998e463ba5e4ad0be96b52e12497d089bdb0b97/src/package-url.d.ts#L68C3-L70

the described feature would bean, that you could set the property to 'foo=1&bar=baz' and it would be internally converted to a dictionary: {foo:1,bar:'baz'}

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

No branches or pull requests

3 participants