{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roledawn-com/json-schema/roledawn-com-jobs-response-schema.json",
  "title": "JobsResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roledawn-com-jobs-openapi.json#/components/schemas/JobsResponse",
  "type": "object",
  "required": [
    "ats",
    "company",
    "company_name",
    "board_url",
    "fetched_at",
    "total",
    "count",
    "limit",
    "offset",
    "next_offset",
    "jobs"
  ],
  "properties": {
    "ats": {
      "type": "string",
      "enum": [
        "greenhouse",
        "lever",
        "ashby"
      ]
    },
    "company": {
      "type": "string"
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "board_url": {
      "type": "string",
      "format": "uri",
      "description": "The public careers board."
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the board was read from the ATS."
    },
    "total": {
      "type": "integer",
      "description": "Jobs matching your filters."
    },
    "count": {
      "type": "integer",
      "description": "Jobs in this page."
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "next_offset": {
      "type": [
        "integer",
        "null"
      ],
      "description": "offset for the next page, or null on the last page."
    },
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Job"
      }
    }
  },
  "$defs": {
    "Job": {
      "type": "object",
      "required": [
        "id",
        "title",
        "company",
        "company_name",
        "ats",
        "location",
        "department",
        "remote",
        "url",
        "posted_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The job's ID in the ATS."
        },
        "title": {
          "type": "string",
          "description": "Job title as posted."
        },
        "company": {
          "type": "string",
          "description": "Board slug you requested."
        },
        "company_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Company name when the ATS provides it (Greenhouse), otherwise null."
        },
        "ats": {
          "type": "string",
          "enum": [
            "greenhouse",
            "lever",
            "ashby"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "description": "Location text; several locations are joined with \"; \"."
        },
        "department": {
          "type": [
            "string",
            "null"
          ],
          "description": "Department, or \"Department / Team\" when the ATS has both."
        },
        "remote": {
          "type": "boolean",
          "description": "true when the ATS marks the job remote or the location says Remote."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Public job post (apply page)."
        },
        "posted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "First published (Greenhouse, Ashby) or created (Lever) time, ISO 8601 UTC."
        }
      }
    }
  }
}