{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jobfinder-ai-com/json-schema/jobfinder-ai-com-job-document-schema.json",
  "title": "JobDocument",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jobfinder-ai-com-openapi.json#/components/schemas/JobDocument",
  "type": "object",
  "required": [
    "apiVersion",
    "data"
  ],
  "properties": {
    "apiVersion": {
      "type": "string",
      "const": "1.0.0"
    },
    "data": {
      "$ref": "#/$defs/Job"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CompensationUsd": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "min",
        "max"
      ],
      "properties": {
        "min": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "description": "Published minimum annual compensation in USD when known."
        },
        "max": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "description": "Published maximum annual compensation in USD when known."
        }
      },
      "additionalProperties": false
    },
    "Job": {
      "type": "object",
      "required": [
        "id",
        "type",
        "title",
        "company",
        "location",
        "remote",
        "remoteScope",
        "seniority",
        "compensationUsd",
        "skills",
        "source",
        "discoveredAt",
        "canonicalUrl",
        "applicationUrl"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable canonical JobFinder job slug."
        },
        "type": {
          "type": "string",
          "const": "job"
        },
        "title": {
          "type": "string"
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "remote": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "remoteScope": {
          "type": [
            "string",
            "null"
          ]
        },
        "seniority": {
          "type": [
            "string",
            "null"
          ]
        },
        "compensationUsd": {
          "$ref": "#/$defs/CompensationUsd"
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source": {
          "type": "string",
          "description": "Public job-board source."
        },
        "discoveredAt": {
          "type": "string",
          "format": "date-time"
        },
        "canonicalUrl": {
          "type": "string",
          "format": "uri"
        },
        "applicationUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": false
    }
  }
}