w3c / spec-prod

GitHub Action to build ReSpec/Bikeshed specs, validate output and publish to GitHub pages or W3C
https://w3c.github.io/spec-prod/
MIT License
34 stars 21 forks source link

Consider cross-spec IDL validation #124

Open tidoust opened 2 years ago

tidoust commented 2 years ago

(Creating the issue to document the idea somewhere following discussions with @dontcallmedom. Not sure whether we'll work on this any time soon :))

The IDL validation in spec-prod only validates the spec IDL in isolation. This prevents detection of errors such as referencing interfaces that do not exist in other specs, creating IDL that duplicates IDL defined in another spec, or even simple typos such as using bool instead of boolean.

The action could leverage the @webref/idl package to merge the spec IDL with the rest of the Web platform's IDL and validate the whole thing to report such issues.

Some notes and open questions:

dontcallmedom commented 2 months ago

@tidoust I wonder if this is something we should provide via strudy - i.e. add to the strudy the ability to report errors based on the immediate reffy-ing of a particular spec