JSON Schema, version 0.2

Schemas

The 6 JSON Schemas of Open App Definition 0.2, each served at the address its $id names and copied byte for byte from spec/0.2/schema/ in the repository. A document can name one in its $schema key so that an editor can check it. What each one describes, in its own words:

  1. OAD 0.2 catalog

    A catalog (*.oadcatalog.json): a versioned, publishable document that holds contracts. A contract describes one reusable part: a control (a building block for visual and voice surfaces) or a capability (typed access to the outside world).

    https://openappdefinition.org/schema/0.2/catalog.schema.json

  2. OAD 0.2 shared definitions

    Definitions shared by the Open App Definition 0.2 document schemas. This document validates nothing on its own; other schemas reference its $defs. The annotation keyword x-oad-kind marks strings and values that hold expressions, paths or dynamic values, so tools can find them by walking a document alongside its schema.

    https://openappdefinition.org/schema/0.2/common.schema.json

  3. OAD 0.2 app definition

    An app definition (*.oad.json): a single JSON document that describes what an app does, the values it holds, the things it can do, when it does them, what it needs from the outside world, what it is permitted to touch, and how people and agents use it.

    https://openappdefinition.org/schema/0.2/definition.schema.json

  4. OAD 0.2 design system

    A design system (*.oaddesign.json): a separately versioned document that supplies tokens, variants, custom control catalogs and agent conventions. Definitions refer to tokens and variants by name only.

    https://openappdefinition.org/schema/0.2/design.schema.json

  5. OAD 0.2 history sidecar

    A history sidecar (*.oad.history.json): the ordered entries that record how a definition changed. Each entry carries an RFC 6902 JSON Patch from the previous entry's document, so applying inverse patches undoes edits one at a time.

    https://openappdefinition.org/schema/0.2/history.schema.json

  6. OAD 0.2 signature sidecar

    A signature sidecar beside a definition, catalog or design system, named after the document's file name with its final .json replaced by .sig.json (com.example.brand.oaddesign.json is signed by com.example.brand.oaddesign.sig.json): detached signatures over the document's digest.

    https://openappdefinition.org/schema/0.2/signature.schema.json

The schemas check the shape of a document. The checks they cannot express are in the Validation chapter of the specification.