{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "integration.schema.json",
  "type": "array",
  "items": {
    "type": "object",
    "required": ["id", "name", "type", "status", "source", "target", "docs", "last_reviewed"],
    "properties": {
      "id": { "type": "string" },
      "name": { "type": "string" },
      "type": { "type": "string" },
      "status": { "type": "string" },
      "source": { "type": "string" },
      "target": { "type": "string" },
      "via": { "type": "array", "items": { "type": "string" } },
      "protocols": { "type": "array", "items": { "type": "string" } },
      "ports": { "type": "array", "items": { "type": "integer" } },
      "direction": { "type": "string" },
      "purpose": { "type": "string" },
      "confidence": { "type": "string" },
      "docs": { "type": "string" },
      "last_reviewed": { "type": "string" },
      "source_of_truth": { "type": "string" }
    },
    "additionalProperties": true
  }
}
