{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/100hires-com/json-schema/100hires-com-workflow-list-response-schema.json",
  "title": "WorkflowListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/100hires-com-taxonomy-api-openapi.yml#/components/schemas/WorkflowListResponse",
  "type": "object",
  "required": [
    "workflows",
    "pagination"
  ],
  "properties": {
    "workflows": {
      "type": "array",
      "description": "Array of workflows.",
      "items": {
        "$ref": "#/$defs/Workflow"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "Pagination": {
      "type": "object",
      "required": [
        "page_size",
        "page_count",
        "page",
        "total_count"
      ],
      "properties": {
        "page_size": {
          "type": "integer",
          "description": "Items per page."
        },
        "page_count": {
          "type": "integer",
          "description": "Total number of pages."
        },
        "page": {
          "type": "integer",
          "description": "Current page number."
        },
        "total_count": {
          "type": "integer",
          "description": "Total number of items."
        }
      }
    },
    "Workflow": {
      "type": "object",
      "required": [
        "id",
        "name",
        "stages"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Workflow ID."
        },
        "name": {
          "type": "string",
          "description": "Workflow name."
        },
        "stages": {
          "type": "array",
          "description": "Array of stages in this workflow.",
          "items": {
            "$ref": "#/$defs/WorkflowStage"
          }
        }
      }
    },
    "WorkflowStage": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Stage ID."
        },
        "name": {
          "type": "string",
          "description": "Stage name."
        },
        "order": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Stage position in the pipeline."
        }
      }
    }
  }
}