Skip to content

Conversation

TG1999
Copy link
Contributor

@TG1999 TG1999 commented Aug 20, 2025

Add tests for validating each PURL type.

Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

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

@TG1999 Thanks! these should be combined in each of the existing JSON files... for instance, for tests/types/conda-validation-tests.json, merge these in https://github.com/package-url/purl-spec/blob/main/tests/types/conda-test.json

And when doing so, please make sure there is no duplicate... you also need to conform to the new schema.

@TG1999 TG1999 force-pushed the add_validation_tests branch 2 times, most recently from 7e01a54 to 07d9554 Compare August 28, 2025 11:56
},
"expected_messages": {
"title": "Expected messages",
"description": "Validation messages expected for this test. Can be null or a list of strings.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Are implementations really expected to produce exactly these text messages?

Copy link
Member

@pombredanne pombredanne Aug 31, 2025

Choose a reason for hiding this comment

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

@matt-phylum re:

Are implementations really expected to produce exactly these text messages?

good point. I have mixed feeling on that alright. One part of me says it would be really nice to have the same validation error messages everywhere. One part of me says it is not critical and may put too much burden on authors. What is your preference?

@TG1999 TG1999 force-pushed the add_validation_tests branch 2 times, most recently from f645ee5 to ce67457 Compare August 31, 2025 03:38
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

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

@TG1999 Thanks! see comments for your review.

Signed-off-by: Tushar Goel <[email protected]>
Signed-off-by: Tushar Goel <[email protected]>
Signed-off-by: Tushar Goel <[email protected]>
Signed-off-by: Tushar Goel <[email protected]>
@TG1999 TG1999 force-pushed the add_validation_tests branch from 0124335 to f3cc7ae Compare September 3, 2025 13:19
TG1999 and others added 5 commits September 3, 2025 18:58
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.

purl-next: Extend syntax validation for PURL
3 participants