schemas.json bundle is the source of truth for RampSpec rule, scenario, suite-lock, event, and report documents. This page explains the import and validation contract without reproducing unreleased fields.
Bundle requirements
Every imported schema must:- declare
https://json-schema.org/draft/2020-12/schema; - use a unique absolute HTTPS
$id; - provide
x-rampspec-kindandx-rampspec-versionmetadata; - belong to exactly one of
rule,scenario,suite-lock,event, orreport; - compile with all internal and external bundle references resolved.
$id and must validate against it. CI rejects missing kinds, duplicate or unresolved identifiers, invalid examples, any byte-level change, or a digest mismatch.
Versioning and migration
Schema versions are independent from the bundle version. Additive optional fields may remain within a compatible major. Removing a field, changing a type or meaning, adding a required field, or changing canonical report representation requires a new schema major and migration notes in the release manifest. Consumers should resolve by exact$id and pinned release, reject unknown required behavior, and preserve unknown optional fields when the schema allows them. They must never select a schema solely by filename.
Import procedure
The manual synchronization workflow downloadsschemas.json from a private rampspec-backend release, verifies the tag’s full commit and the expected SHA-256, validates all schemas and examples, and opens a generated-diff pull request.
generated/schemas/source.json records provenance and npm run lint:schemas verifies both content and examples on every documentation build.
See API endpoints for the OpenAPI boundary and Repository ownership for artifact authority.