{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayhire-com/json-schema/ayhire-com-ats-connection-schema.json",
  "title": "AtsConnection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayhire-com-integrations-api-openapi.yml#/components/schemas/AtsConnection",
  "type": "object",
  "properties": {
    "provider": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "account": {
      "type": [
        "string",
        "null"
      ]
    },
    "auto_send": {
      "type": "boolean"
    },
    "default_job": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "title": {
              "type": "string",
              "maxLength": 200
            }
          },
          "required": [
            "id",
            "title"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "jobs": {
      "type": "boolean",
      "description": "The ATS has jobs to pick"
    },
    "needs_job": {
      "type": "boolean"
    },
    "last_ok_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}