{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/storeProtocol/refs.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": "A repository's refs",
  "description": "The answer to GET …/refs (Part VI, 6.8.5, rule 1): every ref that names a version, in any order.",
  "type": "object",
  "properties": {
    "ok": {
      "const": true,
      "description": "The call was answered as asked (Part VI, 6.8.1, rule 4)."
    },
    "refs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "name",
          "hash"
        ]
      }
    }
  },
  "required": [
    "ok",
    "refs"
  ]
}
