{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smarfle-com/json-schema/smarfle-com-job-request-schema.json",
  "title": "JobRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smarfle-com-openapi.yml#/components/schemas/JobRequest",
  "type": "object",
  "required": [
    "customer_id",
    "title"
  ],
  "additionalProperties": false,
  "properties": {
    "customer_id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "description": {
      "type": "string",
      "maxLength": 5000
    },
    "service_id": {
      "type": "string",
      "format": "uuid"
    },
    "preferred_date": {
      "type": "string",
      "format": "date"
    },
    "preferred_time": {
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "reference": {
      "type": "string",
      "maxLength": 100,
      "description": "Your own id for this job."
    },
    "address_street": {
      "type": "string",
      "maxLength": 200
    },
    "address_unit": {
      "type": "string",
      "maxLength": 50
    },
    "address_city": {
      "type": "string",
      "maxLength": 100
    },
    "address_state": {
      "type": "string",
      "maxLength": 50
    },
    "address_zip": {
      "type": "string",
      "maxLength": 20
    }
  }
}