Skip to main content

Schemas

This page lists stable, versioned schema and registry URLs served by the sloth docs site.

Contract and schema release artifacts are published to GHCR (OCI) from contracts package release automation. For JSON Schema tooling compatibility, the canonical $schema URL remains the docs-hosted HTTPS URL below.

Component Contract

CLI Config YAML

You can reference this schema in .sloth/config.yaml for editor validation:

# yaml-language-server: $schema=https://phuhh98.github.io/sloth/schemas/cli-config/0.0.1/schema.json
currentProfile: default
profiles:
default:
host: http://localhost:1337
authorizationToken: ""

Component Registry

Versioned Folder Convention

Use immutable version folders so old references never break:

apps/docs/static/registry/
index.json
contracts/
index.json
<release-version>/
manifest.json
components/
<component-name>/
contract.json
themes/
index.json

Example versioned contract release artifacts:

Notes

  • Schema URLs should be immutable per version.
  • Registry artifacts should be immutable per version as well.
  • Publish new versions at new paths instead of replacing existing files.
  • GHCR is the immutable artifact/provenance backend; docs URL is the canonical $schema endpoint for validators/editors.
  • Schema files are committed statically into apps/docs/static/schemas/. The GHCR release workflow verifies parity between the committed schemas and the artifacts being pushed — it does not pull from GHCR during docs build.