{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smarfle-com/json-schema/smarfle-com-job-schema.json",
  "title": "Job",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smarfle-com-openapi.yml#/components/schemas/Job",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "object": {
      "const": "job"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "priority": {
      "type": [
        "string",
        "null"
      ]
    },
    "job_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "scheduled_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "scheduled_time": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration_minutes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "customer_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "service_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "assigned_to_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "agreed_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}