Skip to content

Clarification on default_repository_url in type definition and repository_url in qualifiers #972

Description

@yan-foto

tl;dr

Assumption: If a type definition does not include a default_repository_url, then repository_url must be a required qualifier so that respective PURL conforms to the definition of URL in RFC3986.

Is this correct?

Details

The specification states "PURL is a URL". As such I would expect a PURL to be an actual locator, i.e., pointing me to a location that I can fetch the "package" that PURL is identifying, just as a URL should do:

The term "Uniform Resource Locator" (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network "location").
-- RFC3986

So if a type definition does not provide a default_repository_url, then I'd expect that repository_url qualifier to be present.

Does this assumption align with what PURL should be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions