{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/storeProtocol/store.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal storeProtocol, which 0.5 makes a rule (open questions, 28). Written by hand, not generated.",
  "title": "What a store tells of itself",
  "description": "The answer to GET <base>/v0 (Part VI, 6.8.4, rule 1): the protocol's version, and the formats the store reads (Part VI, 6.7, rule 1). A store may add members of its own; a client ignores those it does not know.",
  "type": "object",
  "properties": {
    "ok": {
      "const": true,
      "description": "The call was answered as asked (Part VI, 6.8.1, rule 4)."
    },
    "api": {
      "const": "v0",
      "description": "The version of the protocol the store serves."
    },
    "reads": {
      "type": "array",
      "description": "The formats the store reads, each openeik/<major>.<minor>, a pre-release read as its version (Part VI, 6.7, rule 1).",
      "items": {
        "type": "string",
        "pattern": "^openeik/[0-9]+\\.[0-9]+(-[0-9A-Za-z.-]+)?$"
      }
    }
  },
  "required": [
    "ok",
    "api"
  ]
}
