{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aitrainerjobs-co/json-schema/aitrainerjobs-co-job-list-schema.json",
  "title": "JobList",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aitrainerjobs-co-openapi.json#/components/schemas/JobList",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "minimum": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "offset": {
      "type": "integer",
      "minimum": 0
    },
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Job"
      }
    }
  },
  "required": [
    "total",
    "limit",
    "offset",
    "jobs"
  ],
  "additionalProperties": false,
  "$defs": {
    "Job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[0-9a-f]{8}$"
        },
        "title": {
          "type": "string"
        },
        "company": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "enum": [
            "coding",
            "stem",
            "medical",
            "legal",
            "finance",
            "languages",
            "voice-video",
            "creative",
            "generalist",
            "robotics"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "apply_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "pay": {
          "type": "object",
          "properties": {
            "min": {
              "type": [
                "number",
                "null"
              ]
            },
            "max": {
              "type": [
                "number",
                "null"
              ]
            },
            "currency": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "USD",
                null
              ]
            },
            "period": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "hour",
                "once",
                "task",
                null
              ]
            },
            "label": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "min",
            "max",
            "currency",
            "period",
            "label"
          ],
          "additionalProperties": false
        },
        "location": {
          "type": "object",
          "properties": {
            "label": {
              "type": [
                "string",
                "null"
              ]
            },
            "countries": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "label",
            "countries"
          ],
          "additionalProperties": false
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "entry",
            "experienced",
            "expert",
            null
          ]
        },
        "commitment": {
          "type": [
            "string",
            "null"
          ]
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "posted_at": {
          "type": "string"
        },
        "published_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "closed"
          ]
        }
      },
      "required": [
        "id",
        "title",
        "company",
        "category",
        "url",
        "apply_url",
        "pay",
        "location",
        "languages",
        "level",
        "commitment",
        "skills",
        "summary",
        "posted_at",
        "published_at",
        "status"
      ],
      "additionalProperties": false
    }
  }
}