w3c / reffy

Reffy is a Web spec crawler and analyzer tool. It is notably used to update Webref
MIT License
69 stars 23 forks source link

Fix invalid imports and schema validation code #1629

Closed tidoust closed 1 month ago

tidoust commented 1 month ago

Tests needed for index.js, the typos went through the cracks...

Also, the new loadJSON function does not throw an error when file cannot be loaded, but rather returns null. The function failed as a result when asked to provide a validation function for a schema that did not exist (Webref tests happilly request a validation function for IDL extracts and only after checks that the extracts are JSON files).

tidoust commented 1 month ago

Taking the liberty to merge to release a patch version of Reffy that can actually be imported.