Add test for relative IRI starting with a number.
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 106
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
jsonld.js had a bug not being strict enough when parsing IRIs. For input like 123:abc it would think 123 was a URI scheme.
https://github.com/digitalbazaar/jsonld.js/issues/523
This may not be a common implementation problem. Perhaps a one-line test case update can be added just in case. Which of the many toRdf 3986 test files would be best for this? A one-liner to ensure 123:abc is considered relative vs absolute would catch the issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the toRdf 3986 test files and the existing relative-versus-absolute IRI cases. Add the proposed one-line regression case for 123:abc, then run the relevant toRdf 3986 tests and confirm it is treated as relative rather than absolute.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100