{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crawdar-com/json-schema/crawdar-com-search-job-request-schema.json",
  "title": "SearchJobRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crawdar-com-openapi.yml#/components/schemas/SearchJobRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 8,
      "maxLength": 500,
      "description": "One natural-language lead brief. Geography and public-evidence requirements may be included."
    },
    "target": {
      "type": "string",
      "minLength": 3,
      "maxLength": 220
    },
    "geography": {
      "type": "string",
      "minLength": 2,
      "maxLength": 140
    },
    "qualifier": {
      "type": "string",
      "maxLength": 900
    },
    "fields": {
      "type": "array",
      "items": {
        "enum": [
          "Website",
          "Business email",
          "Phone",
          "Location",
          "Owner type",
          "Description",
          "Source links"
        ]
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 50
    }
  },
  "anyOf": [
    {
      "required": [
        "brief"
      ]
    },
    {
      "required": [
        "target",
        "geography"
      ]
    }
  ]
}