Skip to content

docs(skills): no JSON Schema detection for AsyncAPI/Arazzo roots - #11115

Closed
RobertHebel wants to merge 1 commit into
swagger-api:mainfrom
RobertHebel:docs/skills-json-schema-standalone-rule
Closed

RobertHebel wants to merge 1 commit into
swagger-api:mainfrom
RobertHebel:docs/skills-json-schema-standalone-rule

Conversation

@RobertHebel

Copy link
Copy Markdown
Contributor

Description

Records decision D18 of the "Standalone JSON Schema 2020-12" PRD as decision 8 of /add-json-schema-support: a document is a standalone JSON Schema document only when its root has the dialect's $schema and none of openapi, swagger, asyncapi, arazzo. This matches swagger-client's isJSONSchema202012.

  • Updated: SKILL.md (description, Step 1, Step 4 detection and test items) and references/dialects.md.
  • references/design-and-delivery.md also maps the skill decisions to the PRD's D-numbers and records D3, D5, D6, D12 and D13. Decision 2 (later drafts) stays open.

Motivation and Context

The skill said "no openapi/swagger field". AsyncAPI and Arazzo documents can carry a root $schema too, and the swagger-client strategy already refuses them.

How Has This Been Tested?

bash .claude/skills/add-oas-support/scripts/test/smoke.sh (53 ok) and verify-urls.mjs on the changed files (0 broken).

Checklist

  • No code changes (src/ is unmodified)
  • are not breaking changes.
  • My changes do not require a change to the project documentation.
  • My changes can not or do not need to be tested.

🤖 Generated with Claude Code

A document is a standalone JSON Schema document only when its root has
the dialect's $schema and none of the API description fields openapi,
swagger, asyncapi and arazzo. This was answered as PRD decision D18 on
2026-10-27 and matches swagger-client's isJSONSchema202012 predicate.
It becomes decision 8 of /add-json-schema-support: SKILL.md (the
description, Step 1 and the Step 4 detection and test items),
references/dialects.md (the detection rule) and
references/design-and-delivery.md.

design-and-delivery.md also maps the skill decisions to the
"Standalone JSON Schema 2020-12" PRD numbers (D1-D19) and records the
PRD decisions that bound every dialect: D3 (no cross-dialect $refs),
D5 ($dynamicRef left in place), D6 (bundling deferred), D12 (allOf
merging as for OAS 3.1) and D13 (start on upstream tarballs, merge after
the swagger-client release). Skill decision 2 stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robert-hebel-sb

Copy link
Copy Markdown
Contributor

Superseded: recreated with commits cherry-picked onto latest main.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants