{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/api-index.schema.json",
  "title": "API Index",
  "type": "object",
  "required": [
    "version",
    "operations"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "operations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "method",
          "path",
          "level",
          "summary",
          "risk",
          "phrases"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "risk": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "phrases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
