{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "endpoint.schema.json",
  "type": "array",
  "items": {
    "type": "object",
    "required": ["id", "name", "type", "status", "exposure", "docs", "last_reviewed"],
    "properties": {
      "id": { "type": "string" },
      "name": { "type": "string" },
      "type": { "type": "string" },
      "status": { "type": "string" },
      "exposure": { "type": "string", "enum": ["public", "vpn", "local", "private", "unknown"] },
      "url": { "type": "string" },
      "protocol": { "type": "string" },
      "host": { "type": "string" },
      "port": { "type": "integer" },
      "domain": { "type": "string" },
      "service": { "type": "string" },
      "owner_host": { "type": "string" },
      "purpose": { "type": "string" },
      "auth": { "type": "string" },
      "notes": { "type": "string" },
      "docs": { "type": "string" },
      "last_reviewed": { "type": "string" },
      "source_of_truth": { "type": "string" }
    },
    "additionalProperties": true
  }
}
