{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "BindingHTTP": {
      "properties": {
        "prefix": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "prefix"
      ],
      "description": "BindingHTTP describes the HTTP binding in the describe document."
    },
    "Bindings": {
      "properties": {
        "primary": {
          "type": "string"
        },
        "http": {
          "oneOf": [
            {
              "$ref": "#/$defs/BindingHTTP"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "primary"
      ],
      "description": "Bindings names the primary binding and describes each offered one."
    },
    "Build": {
      "properties": {
        "revision": {
          "type": "string"
        },
        "dirty": {
          "type": "boolean"
        },
        "go": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "revision",
        "dirty",
        "go"
      ],
      "description": "Build identifies the binary: the revision it was built from, whether that tree was dirty, and the Go version."
    },
    "HTTPBinding": {
      "properties": {
        "method": {
          "type": "string"
        },
        "path": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "method",
        "path"
      ],
      "description": "HTTPBinding carries one operation over HTTP."
    },
    "Identity": {
      "properties": {
        "root_id": {
          "type": "string"
        },
        "root_space_id": {
          "type": "string"
        },
        "journal_instance_id": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "root_id",
        "root_space_id",
        "journal_instance_id"
      ],
      "description": "Identity is the service-specific identity member of the health envelope and the describe document: the logical root, its space, and the store lineage."
    },
    "Limits": {
      "properties": {
        "max_position": {
          "type": "integer"
        },
        "max_key_bytes": {
          "type": "integer"
        },
        "max_fact_bytes": {
          "type": "integer"
        },
        "max_append_facts": {
          "type": "integer"
        },
        "max_append_bytes": {
          "type": "integer"
        },
        "max_body_bytes": {
          "type": "integer"
        },
        "max_page_entries": {
          "type": "integer"
        },
        "default_page_entries": {
          "type": "integer"
        },
        "max_page_bytes": {
          "type": "integer"
        },
        "max_inspect_candidates": {
          "type": "integer"
        },
        "max_inspect_bytes": {
          "type": "integer"
        },
        "max_snapshot_spaces": {
          "type": "integer"
        },
        "max_snapshot_bytes": {
          "type": "integer"
        },
        "max_cursor_bytes": {
          "type": "integer"
        },
        "max_value_depth": {
          "type": "integer"
        },
        "max_tuple_arity": {
          "type": "integer"
        },
        "max_atom_bytes": {
          "type": "integer"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "max_position",
        "max_key_bytes",
        "max_fact_bytes",
        "max_append_facts",
        "max_append_bytes",
        "max_body_bytes",
        "max_page_entries",
        "default_page_entries",
        "max_page_bytes",
        "max_inspect_candidates",
        "max_inspect_bytes",
        "max_snapshot_spaces",
        "max_snapshot_bytes",
        "max_cursor_bytes",
        "max_value_depth",
        "max_tuple_arity",
        "max_atom_bytes"
      ],
      "description": "Limits is the advertised operational admission profile."
    },
    "Operation": {
      "properties": {
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "doc": {
          "type": "string"
        },
        "params": {
          "items": {
            "$ref": "#/$defs/Param"
          },
          "type": "array"
        },
        "request": {
          "type": "string"
        },
        "response": {
          "type": "string"
        },
        "errors": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "http": {
          "$ref": "#/$defs/HTTPBinding"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "kind",
        "doc",
        "params",
        "errors"
      ],
      "description": "Operation is the shared operation table row consumed by bindings and clients."
    },
    "Param": {
      "properties": {
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "repeated": {
          "type": "boolean"
        },
        "doc": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "kind",
        "required",
        "repeated",
        "doc"
      ],
      "description": "Param is a named input outside a JSON body."
    },
    "Profiles": {
      "properties": {
        "facts": {
          "type": "string"
        },
        "codec": {
          "type": "string"
        },
        "compound": {
          "type": "string"
        },
        "data": {
          "type": "string"
        },
        "data_json": {
          "type": "string"
        },
        "equality": {
          "type": "string"
        },
        "creation_predicate": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "facts",
        "codec",
        "compound",
        "data",
        "data_json",
        "equality",
        "creation_predicate"
      ],
      "description": "Profiles names the frozen value, encoding and projection profiles the continuing history is pinned to."
    },
    "Refusal": {
      "properties": {
        "name": {
          "type": "string"
        },
        "http": {
          "type": "integer"
        },
        "meaning": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "http",
        "meaning"
      ],
      "description": "Refusal is one row of the refusal table: the surface's name for it, the status the HTTP binding maps it to, and its one-line meaning."
    }
  },
  "properties": {
    "service": {
      "type": "string"
    },
    "contract": {
      "type": "string"
    },
    "build": {
      "$ref": "#/$defs/Build"
    },
    "identity": {
      "oneOf": [
        {
          "$ref": "#/$defs/Identity"
        },
        {
          "type": "null"
        }
      ]
    },
    "bindings": {
      "$ref": "#/$defs/Bindings"
    },
    "operations": {
      "items": {
        "$ref": "#/$defs/Operation"
      },
      "type": "array"
    },
    "refusals": {
      "items": {
        "$ref": "#/$defs/Refusal"
      },
      "type": "array"
    },
    "limits": {
      "$ref": "#/$defs/Limits"
    },
    "profiles": {
      "$ref": "#/$defs/Profiles"
    },
    "files": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "service",
    "contract",
    "build",
    "bindings",
    "operations",
    "refusals",
    "limits",
    "profiles",
    "files"
  ],
  "title": "Describe",
  "description": "Describe is the document of GET /describe: who this is, the root, which contract, which build, which bindings, which operations, which refusals, the limits and profiles, and which committed contract files GET /describe/{file} serves verbatim."
}
