Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
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

Open

Description

@kinlane

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:

Related: #11, #20, #21, spotlight-tools#62.

Activity

  1. added
    enhancement
    roadmap
    maturity:discussing
    on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmaturity:discussingroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions