package-url / package-url/packageurl-java

Support for types

Open
#188 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
48
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Right now, type validation/normalization is just a big method with a switch statement.

Should type handling be moved to separate classes, e.g., have PackageURL handle validation/normalization only in the general case and have each type handle itself?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the type validation and normalization method with its switch statement in PackageURL. Determine whether type-specific behavior can be separated without changing the general-case behavior; done means an agreed design and corresponding type-handling classes, but the issue does not name tests or files beyond PackageURL.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.