Repository navigation
docs(specs): add draft spec graph - #11133
Merged
Merged
Conversation
This was referenced Nov 6, 2026
robert-hebel-sb
force-pushed
the
docs/spec-graph
branch
from
November 13, 2026 09:40
572ae41 to
5762f96
Compare
glowcloud
force-pushed
the
docs/spec-graph
branch
from
November 17, 2026 08:46
5762f96 to
934b658
Compare
glowcloud
approved these changes
Nov 17, 2026
cka121
approved these changes
Nov 19, 2026
glowcloud
force-pushed
the
docs/spec-graph
branch
from
November 23, 2026 06:48
934b658 to
2bb8803
Compare
Contributor
|
🎉 This PR is included in version 5.36.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdis the root: what Swagger UI is for, its capabilities, principles and non-goals.architecture.mdcovers the plugin System, the presets, the runtime dependencies between modules, the repo-wide rules, build outputs and release channels, and the CI checks.SPEC.md):src/core(core runtime)src/core/plugins/spec(document lifecycle and request execution)src/core/plugins/authsrc/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/standaloneflavors/swagger-ui-reactdockerEvery spec has
status: draftin 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:presets.baseis a building block only.presets.apisis the smallest preset that works.dist/is committed: Packagist/composer consumers and people who copy/distfrom GitHub need it in the repo.SwaggerUI.pluginsexport bugs (OpenAPI31is oas3,OpenAPI32is missing,DeepLining);state;configUrland the React props.The specs link to the existing user docs (
docs/customization/plugin-api.md,docs/usage/configuration.md) and to the.claude/skillsreferences 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.
.mdlink in the 11 files resolves.d3296954.Screenshots (if appropriate):
N/A
Checklist
My PR contains...
src/is unmodified: changes to documentation, CI, metadata, etc.)package.json)My changes...
Documentation
Automated tests