{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/100hires-com/json-schema/100hires-com-career-site-job-detail-schema.json",
  "title": "CareerSiteJobDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/100hires-com-career-site-api-openapi.yml#/components/schemas/CareerSiteJobDetail",
  "allOf": [
    {
      "$ref": "#/$defs/CareerSiteJob"
    },
    {
      "type": "object",
      "properties": {
        "salary_min": {
          "type": [
            "number",
            "null"
          ]
        },
        "salary_max": {
          "type": [
            "number",
            "null"
          ]
        },
        "salary_currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "salary_period": {
          "type": [
            "string",
            "null"
          ]
        },
        "education_level": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/IdName"
            }
          ]
        },
        "experience_level": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/IdName"
            }
          ]
        }
      }
    }
  ],
  "$defs": {
    "CareerSiteJob": {
      "type": "object",
      "required": [
        "id",
        "title",
        "description",
        "location",
        "is_remote",
        "is_hybrid",
        "application_url",
        "form_id",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Job ID."
        },
        "title": {
          "type": "string",
          "description": "Job title."
        },
        "description": {
          "type": "string",
          "description": "HTML content"
        },
        "department": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/IdName"
            }
          ]
        },
        "location": {
          "$ref": "#/$defs/CareerSiteLocation"
        },
        "employment_type": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/IdName"
            }
          ]
        },
        "is_remote": {
          "type": "boolean",
          "description": "Whether this is a remote position."
        },
        "is_hybrid": {
          "type": "boolean",
          "description": "Whether this is a hybrid position (office days plus remote days at the job address)."
        },
        "application_url": {
          "type": "string",
          "format": "uri",
          "description": "Public application form URL."
        },
        "form_id": {
          "type": [
            "integer",
            "null"
          ],
          "description": "ID of the application form this job uses — the form attached to the job, or the company default form when none is attached (the same rule the apply page at `application_url` follows). Resolve the questions server-side with `GET /forms/{id}` (private API key) and render them on your own site; submit the candidate's answers with `POST /career-site/applications`. `null` only when the company has no forms."
        },
        "created_at": {
          "type": "integer",
          "format": "int64",
          "description": "Unix timestamp (seconds)"
        }
      }
    },
    "CareerSiteLocation": {
      "type": "object",
      "properties": {
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "City."
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "Country."
        },
        "state": {
          "type": [
            "string",
            "null"
          ],
          "description": "State or region."
        }
      }
    },
    "IdName": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier."
        },
        "name": {
          "type": "string",
          "description": "Display name."
        }
      }
    }
  }
}