{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/clarivate/main/json-schema/clarivate-search-schema.json",
  "title": "Search",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarivate-searches-antibody-api-openapi.yml#/components/schemas/Search",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the Search."
    },
    "type": {
      "type": "string",
      "description": "Resource type.",
      "enum": [
        "search"
      ]
    },
    "attributes": {
      "$ref": "#/$defs/SearchAttributes"
    }
  },
  "required": [
    "id",
    "type",
    "attributes"
  ],
  "$defs": {
    "SearchAttributes": {
      "type": "object",
      "required": [
        "id",
        "program",
        "title",
        "status",
        "completion",
        "search_results_count",
        "redundant_search_results_count",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "program": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "completion": {
          "type": "integer"
        },
        "search_results_count": {
          "type": "integer"
        },
        "redundant_search_results_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "started_at": {
          "oneOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "completed_at": {
          "oneOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}