Skip to content

docs(specs): add draft spec graph - #11133

Merged
glowcloud merged 1 commit into
mainfrom
docs/spec-graph
Nov 23, 2026
Merged

glowcloud merged 1 commit into
mainfrom
docs/spec-graph

Conversation

@robert-hebel-sb

@robert-hebel-sb robert-hebel-sb commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Stack 0/3: this PR is the base of a stack. The PRs that follow are #11134 (Tailwind build), #11135 (opt-in unified JSON Schema view for 3.1/3.2) and #11136 (2.0/3.0 dialects).

Description

This PR adds a draft spec graph: short, declarative design records that sit next to the code they describe. They capture the intent, boundaries, contracts and known limitations that the code itself doesn't show:

  • goal-and-requirements.md is the root: what Swagger UI is for, its capabilities, principles and non-goals.
  • architecture.md covers the plugin System, the presets, the runtime dependencies between modules, the repo-wide rules, build outputs and release channels, and the CI checks.
  • Module specs (SPEC.md):
    • src/core (core runtime)
    • src/core/plugins/spec (document lifecycle and request execution)
    • src/core/plugins/auth
    • src/core/components (UI shell)
    • src/core/plugins/oas3 (OpenAPI 3.0/3.1/3.2 version plugins)
    • src/core/plugins/json-schema-2020-12 (both JSON Schema renderers and their sample generators)
    • src/standalone
    • flavors/swagger-ui-react
    • docker

Every spec has status: draft in its frontmatter. Most of the content was reverse-engineered from the code at 5.34.1, CLAUDE.md, docs/ and .claude/skills. These points were confirmed by a maintainer:

  • Non-goals: authoring/editing definitions, validating them, localization, and Swagger 1.x.
  • presets.base is a building block only. presets.apis is the smallest preset that works.
  • Why dist/ is committed: Packagist/composer consumers and people who copy /dist from GitHub need it in the repo.
  • Known limitations, each recorded in its owning spec:
    • the SwaggerUI.plugins export bugs (OpenAPI31 is oas3, OpenAPI32 is missing, DeepLining);
    • the OAS 3.2 gaps;
    • the predictable OAuth2 state;
    • the limits of configUrl and the React props.

The specs link to the existing user docs (docs/customization/plugin-api.md, docs/usage/configuration.md) and to the .claude/skills references by path. They don't copy them.

Motivation and Context

These records give people and coding agents one place to check the architecture decisions and contracts before changing them. The PRs stacked on top update the specs alongside the code they change.

How Has This Been Tested?

Only Markdown is added. No code, configuration or dependencies change.

  • Spec-graph validation (dangling links, duplicate ids, parent cycles): no issues.
  • Every relative .md link in the 11 files resolves.
  • Every file path and option the specs mention was checked against the tree at d3296954.

Screenshots (if appropriate):

N/A

Checklist

My PR contains...

  • No code changes (src/ is unmodified: changes to documentation, CI, metadata, etc.)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes to a public API (config options, System API, major UI change, etc).
  • are breaking changes to a private API (Redux, component props, utility functions, etc.).
  • are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
  • are not breaking changes.

Documentation

  • My changes do not require a change to the project documentation.
  • My changes require a change to the project documentation.
  • If yes to above: I have updated the documentation accordingly.

Automated tests

  • My changes can not or do not need to be tested.
  • My changes can and should be tested by unit and/or integration tests.
  • If yes to above: I have added tests to cover my changes.
  • If yes to above: I have taken care to cover edge cases in my tests.
  • All new and existing tests passed.

@glowcloud
glowcloud merged commit b0fdfd3 into main Nov 23, 2026
9 checks passed
@swagger-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.36.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants