This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Description
Currently yarn validate --url <url> can be used to validate JSON documents against the Web Annotation Data Model schema. This is achieved through executing test/data-model.test.ts. I'm wondering if this should/could be included as API somewhere? An example use case would be where a server may wish to validate uploaded annotation data against the schema. I am aware that this probably doesn't fall into either the dom or selector package, but since the code is already there, it seems like a waste to not to include it in a more developer-friendly form. Perhaps in a new util package? It should be relatively trivial, and I could take that on.