purl-spec icon indicating copy to clipboard operation
purl-spec copied to clipboard

Fixes for cpan

Open prabhu opened this issue 4 months ago • 3 comments

CPAN namespace rules are too difficult to represent in JSON Schema format. Gemini and I tried our best to convey the information from the extended definition in the current format.

  • Defined Requirements: The name_definition is now correctly marked as "required", while the version_definition is marked as "optional". The requirement for all keys in the qualifiers_definition has also been explicitly set to "optional".
  • Improved Namespace and Name Definitions: The namespace_definition now specifies its native_name as "author id" and includes a normalization_rules field to enforce that it must be uppercased. The note in name_definition has been updated to be more explicit about the different validation rules that apply depending on whether a namespace is present (for a distribution) or absent (for a module).
  • Added Case Sensitivity: The namespace_definition now correctly includes case_sensitive: true.

prabhu avatar Aug 23 '25 22:08 prabhu

Hi, this CPAN specification will be replaced by this PR #420.

giterlizzi avatar Aug 23 '25 22:08 giterlizzi

Let's keep this open. Once 420 is merged will rebase and redo to update the models

prabhu avatar Aug 24 '25 00:08 prabhu

Seems I made a mistake in the merge; Apologies!

sjn avatar Sep 12 '25 14:09 sjn