UI contract.
api.json contract
Platform spec feature
api.json contract
-
api.json primary
Context
Decision
api.json is primary structured docs contract.
Consequences
Templates exempt.
Verification anchors
doc emission; pckg UI.
-
Hub authority
Context
Informal notes.
Decision
Hub and ADRs supersede crate notes.
Consequences
Spec leads code.
Verification anchors
content verify.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
What this feature specifies
api.json is the primary structured contract for registry API documentation. The Beskid CLI emits it under .beskid/docs/ during beskid doc and beskid pckg pack for packageKind: library artifacts. Consumers (pckg, IDE tooling, custom renderers) must treat the JSON graph as authoritative for navigation, member hierarchy, and type linking—not parallel ad-hoc grouping outside the schema.
packageKind: template packages must not require or display api.json on the registry. See Template packages and Package kinds.
Implementation anchors
- Schema emission:
compiler/crates/beskid_analysis/src/doc/(api.jsonsnapshot and signatures) - CLI:
compiler/crates/beskid_cli/src/commands/doc.rs - Registry ingestion:
compiler/crates/beskid_pckg/src/api_doc.rsand pckgStructuredApiDocDtos - UI: pckg
PackageDocscomponents driven by deserializedapi.json
Articles
Decisions
No open decisions. D-TOOL-CLI-0001 (api.json primary contract), 0002 (hub authority)—see adr/ and the ADRs tab.