{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drillerdb-com/json-schema/drillerdb-com-work-order-response-schema.json",
  "title": "WorkOrderResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drillerdb-com-work-orders-api-openapi.yml#/components/schemas/WorkOrderResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/WorkOrder"
    },
    "meta": {
      "$ref": "#/$defs/RequestMeta"
    },
    "links": {
      "$ref": "#/$defs/ItemLinks"
    }
  },
  "required": [
    "data",
    "meta",
    "links"
  ],
  "$defs": {
    "ItemLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string"
        }
      },
      "required": [
        "self"
      ]
    },
    "RequestMeta": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ]
    },
    "WorkOrder": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "project_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "work_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "field_tech": {
          "type": [
            "string",
            "null"
          ]
        },
        "service_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "completed_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "customer_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "customer_name": {
          "type": "string"
        },
        "project_title": {
          "type": [
            "string",
            "null"
          ]
        },
        "memo": {
          "type": [
            "string",
            "null"
          ]
        },
        "amount_billed": {
          "type": [
            "string",
            "number",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "status",
        "category",
        "customer_name"
      ]
    }
  }
}