Skip to content

Conversation

@andrew
Copy link
Owner

@andrew andrew commented Jul 29, 2025

package-url/purl-spec#538 (comment)

Replace route_patterns with standards-compliant URI templates across all 23 package types. This change prepares the codebase for IETF standardization by adopting RFC 6570 URI Template specification.

  • Add addressable gem dependency for URI template support
  • Implement URI template-based URL generation in RegistryURL class
  • Add uri_template, uri_template_with_version, and conditional namespace variants to purl-types.json configuration
  • Replace route_patterns with dynamic generation from URI templates
  • Maintain full backward compatibility for existing APIs
  • Support all existing URL patterns with standards-based templates

This doesn't break any ruby apis, but the json file is changed in a breaking way, I doubt anyone is using it yet though.

Replace legacy route_patterns with standards-compliant URI templates
across all 23 package types. This change prepares the codebase for
IETF standardization by adopting RFC 6570 URI Template specification.

- Add addressable gem dependency for URI template support
- Implement URI template-based URL generation in RegistryURL class
- Add uri_template, uri_template_with_version, and conditional namespace
  variants to purl-types.json configuration
- Replace route_patterns with dynamic generation from URI templates
- Maintain full backward compatibility for existing APIs
- Support all existing URL patterns with standards-based templates
@andrew andrew added the enhancement New feature or request label Jul 29, 2025
@andrew andrew merged commit 274fa61 into main Jul 29, 2025
1 check passed
@andrew andrew deleted the uri-templates branch July 29, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants