packageurl-java
packageurl-java copied to clipboard
Java/JVM implementation of the package url spec
This change makes the two test pass that were introduced in https://github.com/package-url/purl-spec/pull/368. See also https://github.com/package-url/purl-spec/pull/404.
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...
Right now, the various validation methods might actually normalize the components on input, too. Should the various component methods, e.g., `getName()`, `getVersion()`, etc., return the valid but _not normalized_ component?...