packageurl-java icon indicating copy to clipboard operation
packageurl-java copied to clipboard

Separation of validation and normalization logic

Open dwalluck opened this issue 11 months ago • 0 comments

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?

It seemed to be intended that normalization only occur before returning a string (toString())?

Add a separate public PackageURL::normalize (PackageURL::canonicalize returns a String)?

dwalluck avatar Mar 12 '25 15:03 dwalluck