-
Notifications
You must be signed in to change notification settings - Fork 221
Update 'type' component in core spec and add faq.rst #378 #383
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
Conversation
Reference: #378 Signed-off-by: John M. Horan <johnmhoran@gmail.com>
|
I've just pushed my initial drafting for the There is more work to do, including at least removing my effort to incorporate inline-CSS in the new All comments are welcome and encouraged, including suggestions on how to make the |
DennisClark
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnmhoran all of the changes look good to me and contribute a lot of clarity to the spec.
Reference: #378 Signed-off-by: John M. Horan <johnmhoran@gmail.com>
|
Thanks @DennisClark . BTW, I've removed the inline CSS from |
pombredanne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some nits for your consideration.
This section contained duplicate information that is already present for each component in the "Rules" section and included confusing sentences that applied too generally to certain purl components. Each component's set of rules should clearly define how the content of that component should (or should not) be encoded. These improvements are being made in PRs such as #383 (more will be coming for other component sections).
|
@pombredanne I've made your suggested changes, as well as additional changes to the These failures could be due in part to my inability to understand clearly how the test objects are meant to be constructed -- but I think that the Python implementation is also not correctly implementing all aspects of the core spec. Among other things, that implementation seems to allow the
@mprpic @jkowalleck @matt-phylum I'd be very interested in your feedback as well. |
|
packageurl-python is an outlier. For For For |
| '.', '+' and '-' (period, plus, and dash). | ||
| - The ``type`` MUST start with an ASCII letter. | ||
| - The ``type`` MUST NOT be percent-encoded. | ||
| - The ``type`` is case insensitive. The canonical form is lowercase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ we have the canonicalization in the test suite already:
purl-spec/test-suite-data.json
Lines 39 to 48 in 17a74ea
| "description": "valid go purl with version and subpath", | |
| "purl": "pkg:GOLANG/google.golang.org/genproto@abcdedf#/googleapis/api/annotations/", | |
| "canonical_purl": "pkg:golang/google.golang.org/genproto@abcdedf#googleapis/api/annotations", | |
| "type": "golang", | |
| "namespace": "google.golang.org", | |
| "name": "genproto", | |
| "version": "abcdedf", | |
| "qualifiers": null, | |
| "subpath": "googleapis/api/annotations", | |
| "is_invalid": false |
|
@mprpic @jkowalleck @matt-phylum In case you have time tomorrow, I hope you'll be able to join the next biweekly 30-minute purl community meeting -- tomorrow 2025-02-19 at 17:00 UTC/09:00 PST (details are here). |
pombredanne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thanks!
Reference: #378