Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-json-schema-support

Skill by swagger-api

Plans and delivers rendering of standalone JSON Schema documents in Swagger UI, starting with JSON Schema 2020-12. It is for contributors to Swagger UI and related Swagger repositories.

  • Score 89
  • 29k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-json-schema-support

Built from the published package, never by AI.

git clone --depth 1 https://github.com/swagger-api/swagger-ui /tmp/swagger-ui && mkdir -p ~/.claude/skills && cp -r /tmp/swagger-ui/.claude/skills/add-json-schema-support ~/.claude/skills/add-json-schema-support

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-json-schema-support in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill plans and delivers rendering of standalone JSON Schema documents in Swagger UI. A standalone document has a root $schema and no openapi or swagger field. It starts with JSON Schema 2020-12 and extends to 2019-09, Draft 7, Draft 6 and Draft 4/5. Swagger UI currently renders JSON Schema only inside OpenAPI documents.

The skill builds a per-draft keyword map against the existing 2020-12 renderer and settles design decisions with the user. It then implements detection, a dialect-configured renderer and keyword components in version-gated pull requests, checked by lint, unit, Playwright, build and coverage gates. It is aimed at contributors to swagger-ui, SwaggerEditor, apidom and swagger-client, and it does not cover Schema Objects inside OpenAPI documents.

Written from the project's SKILL.md and checked against it.

What it can do

  • Detect standalone JSON Schema documentsDetects a root $schema with no openapi or swagger field, per the draft's meta-schema identifier.
  • Build a per-draft keyword mapLists each keyword of a draft and its baseline behaviour in the current 2020-12 renderer.
  • Plan version-gated pull requestsSplits the work into a detection PR, then keyword PRs grouped by shared components.
  • Dialect-configured rendererCreates a renderer instance per draft with its own keyword list and component overrides.
  • Keyword components per draftAdds dialect-specific components for keywords that are new, changed in shape or renamed.
  • $ref resolution via swagger-clientUses swagger-client's json-schema-<dialect>-apidom strategy to resolve references in the preview.
  • Refuse unrecognised $schema valuesShows a refusal message for a root $schema that no delivered dialect covers.
  • Run project quality gatesRuns lint, type-check, unit tests, Playwright specs, build and coverage checks on every PR.

What you need

  • npm, for the lint, test and build scripts
  • Checkouts of swagger-ui, swagger-editor, apidom and swagger-client

Try asking

  • Add standalone JSON Schema 2020-12 rendering to Swagger UI
  • Map the keywords of JSON Schema Draft 7 against the 2020-12 renderer
  • What would standalone JSON Schema support in Swagger UI take?

Good to know

  • Starts with JSON Schema 2020-12; other drafts are delivered in later PRs
  • Refuses root $schema values that no delivered dialect covers
  • Schema Objects inside OpenAPI documents are handled by add-oas-support
  • $ref resolution needs a swagger-client release that includes the strategy

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/add-json-schema-support/SKILL.md, .claude/skills/add-json-schema-support/evals/json-schema-2020-12-standalone-plan/checkout-fixture.sh, .claude/skills/add-json-schema-support/evals/json-schema-draft-7-keyword-map/checkout-fixture.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • evals/json-schema-2020-12-standalone-plan/case.yaml1 KB
  • evals/json-schema-2020-12-standalone-plan/checkout-fixture.sh934 B
  • evals/json-schema-2020-12-standalone-plan/graders/01-the-plan-states-that-swagger-ui.md287 B
  • evals/json-schema-2020-12-standalone-plan/graders/02-detection-is-keyed-on-the-root.md394 B
Show all 31 files
  • evals/json-schema-2020-12-standalone-plan/graders/03-the-plan-notes-that-keywords-unknown.md268 B
  • evals/json-schema-2020-12-standalone-plan/graders/04-the-plan-renders-the-document-through.md290 B
  • evals/json-schema-2020-12-standalone-plan/graders/05-the-plan-identifies-openapi-coupling-that.md342 B
  • evals/json-schema-2020-12-standalone-plan/graders/06-the-plan-notes-that-ref-is.md336 B
  • evals/json-schema-2020-12-standalone-plan/graders/07-the-plan-registers-the-new.md392 B
  • evals/json-schema-2020-12-standalone-plan/graders/08-the-plan-includes-a-regression-test.md185 B
  • evals/json-schema-2020-12-standalone-plan/graders/09-the-plan-separates-swaggereditor-work-content.md308 B
  • evals/json-schema-2020-12-standalone-plan/graders/10-no-files-under-src-or-test.md97 B
  • evals/json-schema-2020-12-standalone-plan/prompt.md541 B
  • evals/json-schema-draft-7-keyword-map/case.yaml927 B
  • evals/json-schema-draft-7-keyword-map/checkout-fixture.sh934 B
  • evals/json-schema-draft-7-keyword-map/graders/01-the-document-gives-the-draft-7.md142 B
  • evals/json-schema-draft-7-keyword-map/graders/02-array-form-items-an-array-of.md259 B
  • evals/json-schema-draft-7-keyword-map/graders/03-additionalitems-is-listed-as-a-draft.md180 B
  • evals/json-schema-draft-7-keyword-map/graders/04-definitions-is-identified-as-the-draft.md148 B
  • evals/json-schema-draft-7-keyword-map/graders/05-dependencies-is-identified-as-a-draft.md185 B
  • evals/json-schema-draft-7-keyword-map/graders/06-the-document-notes-that-draft-7.md217 B
  • evals/json-schema-draft-7-keyword-map/graders/07-the-document-lists-2020-12-keywords.md365 B
  • evals/json-schema-draft-7-keyword-map/graders/08-keywords-whose-behaviour-is-the-same.md228 B
  • evals/json-schema-draft-7-keyword-map/graders/09-the-analysis-cites-the-draft-7.md146 B
  • evals/json-schema-draft-7-keyword-map/graders/10-no-files-under-src-or-test.md97 B
  • evals/json-schema-draft-7-keyword-map/prompt.md417 B
  • references/design-and-delivery.md9 KB
  • references/dialects.md6 KB
  • references/keyword-map-template.md4 KB

And 1 more files on GitHub.

Alternatives to add-json-schema-support

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

add-json-schema-support: common questions

Does this render JSON Schema documents that have no OpenAPI wrapper?

Yes, that is its goal. It targets documents whose root has $schema and no openapi or swagger field, which Swagger UI cannot render today.

Which JSON Schema drafts does it cover?

It starts with 2020-12 and extends to 2019-09, Draft 7, Draft 6 and Draft 4/5, in that order.

Does it change how OpenAPI documents are rendered?

The source says OpenAPI 3.0, 3.1 and 3.2 regression specs must render exactly as before, and OAS Schema Object work goes to add-oas-support.

How do I install add-json-schema-support?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-json-schema-support free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is add-json-schema-support safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to add-json-schema-support?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

add-json-schema-support Install

Add to stack

Loading.