{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://atlas.local/schemas/endpoint.schema.json",
  "title": "Atlas endpoint record",
  "type": "object",
  "required": [
    "provider",
    "method",
    "path",
    "status",
    "sources"
  ],
  "properties": {
    "provider": {
      "enum": [
        "openai",
        "anthropic",
        "xai",
        "gemini"
      ]
    },
    "api_family": {
      "type": [
        "string",
        "null"
      ]
    },
    "method": {
      "type": "string",
      "description": "GET | POST | PUT | PATCH | DELETE | WS | WEBRTC | SIP | SSE | *"
    },
    "path": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/status"
      }
    },
    "auth": {
      "type": [
        "string",
        "array",
        "object",
        "null"
      ]
    },
    "beta_header": {
      "type": [
        "string",
        "array",
        "null"
      ]
    },
    "request": {
      "type": [
        "object",
        "null"
      ]
    },
    "response": {
      "type": [
        "object",
        "null"
      ]
    },
    "streaming": {
      "type": [
        "object",
        "boolean",
        "null"
      ]
    },
    "pagination": {
      "type": [
        "object",
        "string",
        "boolean",
        "null"
      ]
    },
    "idempotency": {
      "type": [
        "string",
        "boolean",
        "null"
      ]
    },
    "sdk": {
      "type": [
        "object",
        "null"
      ]
    },
    "relations": {
      "type": [
        "array",
        "object",
        "null"
      ]
    },
    "verification": {
      "$ref": "common.schema.json#/$defs/verification"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/source"
      }
    }
  }
}
