{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clusterhack-dev/json-schema/clusterhack-dev-paginated-company-ex-employee-list-schema.json",
  "title": "PaginatedCompanyExEmployeeList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clusterhack-dev-company-ex-employees-api-openapi.yml#/components/schemas/PaginatedCompanyExEmployeeList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CompanyExEmployee"
      }
    }
  },
  "$defs": {
    "CompanyExEmployee": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "company": {
          "type": [
            "integer",
            "null"
          ],
          "title": "What organisation"
        },
        "employee": {
          "type": [
            "integer",
            "null"
          ]
        },
        "position": {
          "type": "string",
          "title": "Which position",
          "maxLength": 400
        },
        "data_start_job": {
          "type": "string",
          "format": "date",
          "title": "When did the employee start working for the organization?"
        },
        "data_end_job": {
          "type": "string",
          "format": "date",
          "title": "When an employee quit working for the organization?"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}