Skip to content

Separation of validation and normalization logic #187

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

Open
dwalluck opened this issue Mar 12, 2025 · 0 comments
Open

Separation of validation and normalization logic #187

dwalluck opened this issue Mar 12, 2025 · 0 comments

Comments

@dwalluck
Copy link
Contributor

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)?

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

1 participant