{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-lead-stage-schema.json",
  "title": "LeadStage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-leads-api-openapi.yml#/components/schemas/LeadStage",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "color": {
      "type": [
        "string",
        "null"
      ]
    },
    "order": {
      "type": "integer"
    },
    "isDefault": {
      "type": "boolean"
    },
    "isWon": {
      "type": "boolean"
    },
    "isLost": {
      "type": "boolean"
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "color",
    "order",
    "isDefault",
    "isWon",
    "isLost",
    "createdAt"
  ]
}