You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Ruleset referencing: how default and custom rulesets are named, found and composed #30
The third of the three "can of worms" areas named in office hours on 2026-08-21, alongside
annotations (#20) and custom functions. Not previously filed.
Every ruleset in the wild starts with extends, and almost nothing about extends is
specified. It is the most-used feature of the format and the least described.
What is actually undefined today
Identifier syntax.spectral:oas is a scheme with no specification behind it. A fork
that ships fork:openapi is inventing a second one. What is the grammar, who owns the
namespaces, and how does an implementation resolve one it does not recognize?
Resolution. Built-in name, npm package, filesystem path, URL — all four are in use.
Which are required, which are optional, and what an implementation does with the rest.
Composition and precedence. Multiple extends, the order they apply in, what happens
when two extended rulesets define the same rule name, and what "last one wins" means when
the list came from three levels of nesting.
The inheritance modes.extends supports recommended/all forms; those need normative
wording rather than documentation-by-example.
Overrides. Disabling, re-severity-ing and partially redefining an inherited rule — the
most common real-world use and the least specified.
Cycles and depth. What an implementation must do when rulesets extend each other in a
loop.
Why it matters more than it looks
Three separate items in this repo run straight through it:
The new default ruleset and the compatibility layer for the Stoplight-specific rules
(spotlight-tools#62) is entirely a referencing-and-precedence design. It cannot be
specified until this is.
Activity