Skip to content

Conversation

prabhu
Copy link
Contributor

@prabhu prabhu commented Aug 23, 2025

  • Corrected Typo: The non-standard attribute is_case_sensitve in name_definition has been corrected to the standard case_sensitive.
  • Defined Requirements: Both the name_definition and version_definition are now correctly marked as "required", reflecting that they are mandatory components for a valid cargo purl.
  • Improved Descriptions: The note fields for the name and version have been updated to be more specific. The name is clarified as the "package name," and the version note now specifies that it should follow the Semantic Versioning (SemVer) specification.
  • Added Qualifiers Definition: A qualifiers_definition has been added to define the optional repository_url key, which is used to specify alternative registries for packages not hosted on crates.io.

Signed-off-by: Prabhu Subramanian <[email protected]>
@prabhu prabhu marked this pull request as draft August 24, 2025 20:15
},
"version_definition": {
"requirement": "required",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"requirement": "required",

Why would the version be required for Cargo specifically if it is not required for other, similar package managers?

"native_name": "version",
"note": "The version is the package version."
"note": "The version is the package version. It should follow the Semantic Versioning (SemVer) specification."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it mean for PURL implementations that the version "should" be semver? Either it is semver or it is not semver. I don't know if it matters. This seems like unnecessary information.

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

Successfully merging this pull request may close these issues.

2 participants