{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-job-families-pagination-response-schema.json",
  "title": "JobFamiliesPaginationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-job-architecture-job-family-api-openapi.yml#/components/schemas/JobFamiliesPaginationResponse",
  "properties": {
    "families": {
      "items": {
        "$ref": "#/$defs/JobFamilyRead"
      },
      "type": "array",
      "title": "Families",
      "default": []
    },
    "hasNext": {
      "type": "boolean",
      "title": "Hasnext",
      "default": false
    },
    "numResults": {
      "type": "integer",
      "title": "Numresults",
      "default": 0
    },
    "pageCount": {
      "type": "integer",
      "title": "Pagecount",
      "default": 0
    }
  },
  "type": "object",
  "$defs": {
    "ChangeInfoRead": {
      "properties": {
        "date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "userId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Userid"
        },
        "userName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Username"
        }
      },
      "type": "object",
      "title": "ChangeInfoRead"
    },
    "DescriptionSource": {
      "type": "string",
      "enum": [
        "source",
        "ai"
      ],
      "title": "DescriptionSource"
    },
    "DisplayedTerm": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "display": {
          "type": "string",
          "title": "Display"
        },
        "language": {
          "type": "string",
          "title": "Language"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "id",
        "display",
        "language"
      ],
      "title": "DisplayedTerm",
      "description": "Represents a displayed term with basic properties.\n\nThis model is configured to allow additional fields beyond those explicitly defined.\nThis flexibility enables the incorporation of extra keys from the ontology without enforcing a rigid schema."
    },
    "ImportanceEnum": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "crucial"
      ],
      "title": "ImportanceEnum"
    },
    "JobFamilyRead": {
      "properties": {
        "skills": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SkillAPI"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Skills"
        },
        "skillComponents": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SkillComponent-Output"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Skillcomponents"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "descriptionSource": {
          "anyOf": [
            {
              "$ref": "#/$defs/DescriptionSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "$ref": "#/$defs/Status"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "lastUpdated": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChangeInfoRead"
            },
            {
              "type": "null"
            }
          ]
        },
        "created": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChangeInfoRead"
            },
            {
              "type": "null"
            }
          ]
        },
        "jobCodesCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jobcodescount"
        },
        "jobTitlesCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jobtitlescount"
        }
      },
      "type": "object",
      "title": "JobFamilyRead"
    },
    "SkillAPI": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "language": {
          "type": "string",
          "title": "Language",
          "default": "en"
        },
        "level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Level"
        },
        "source": {
          "$ref": "#/$defs/SkillSource",
          "default": "company"
        },
        "importance": {
          "anyOf": [
            {
              "$ref": "#/$defs/ImportanceEnum"
            },
            {
              "type": "null"
            }
          ]
        },
        "entitySource": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "job_title",
                "job_code",
                "job_family"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Entitysource"
        },
        "isDeleted": {
          "type": "boolean",
          "title": "Isdeleted",
          "default": false
        },
        "isCascaded": {
          "type": "boolean",
          "title": "Iscascaded",
          "default": false
        },
        "createdAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Createdat"
        },
        "modifiedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Modifiedat"
        },
        "externalId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Externalid"
        },
        "taxonomy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Taxonomy"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "SkillAPI",
      "description": "Skill model for API responses (GET) - no validation to support legacy data"
    },
    "SkillComponent-Output": {
      "properties": {
        "skill": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayedTerm"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "type": "array",
          "title": "Tags"
        },
        "entity": {
          "additionalProperties": true,
          "type": "object",
          "title": "Entity"
        },
        "is_unknown_skill": {
          "type": "boolean",
          "title": "Is Unknown Skill",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "title": "Name",
          "readOnly": true
        }
      },
      "type": "object",
      "required": [
        "tags",
        "is_unknown_skill",
        "name"
      ],
      "title": "SkillComponent",
      "description": "Represents a grouped skill component.\n\nAttributes:\n  - skill: The associated DisplayedTerm (if found).\n  - tags: A list of Tag objects grouped for this skill.\n  - entity: A dictionary containing additional merged entity data."
    },
    "SkillSource": {
      "type": "string",
      "enum": [
        "company",
        "enrichment"
      ],
      "title": "SkillSource"
    },
    "Status": {
      "type": "string",
      "enum": [
        "Active",
        "Inactive",
        "Draft"
      ],
      "title": "Status",
      "description": "a class represents the status"
    },
    "Tag": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "language": {
          "type": "string",
          "title": "Language"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "name",
        "language"
      ],
      "title": "Tag",
      "description": "Represents a tag with basic attributes.\n\nThe model accepts extra entity data beyond the defined fields, allowing for the inclusion of\nadditional metadata without a strict format requirement."
    }
  }
}