Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

api.json contract

Platform spec feature

api.json contract

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

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.json snapshot and signatures)
  • CLI: compiler/crates/beskid_cli/src/commands/doc.rs
  • Registry ingestion: compiler/crates/beskid_pckg/src/api_doc.rs and pckg StructuredApiDocDtos
  • UI: pckg PackageDocs components driven by deserialized api.json

Articles