{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lucca/json-schema/lucca-job-qualifications-read-schema.json",
  "title": "job-qualifications.read",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lucca-employee-job-qualifications-api-openapi.yml#/components/schemas/job-qualifications.read",
  "allOf": [
    {
      "$ref": "#/$defs/job-qualifications"
    },
    {
      "$ref": "#/$defs/job-qualification.embedded"
    }
  ],
  "$defs": {
    "collection.links": {
      "type": "object",
      "properties": {
        "links": {
          "title": "Links",
          "description": "Links to related resources",
          "type": [
            "object",
            "null"
          ],
          "required": [
            "prev",
            "next"
          ],
          "properties": {
            "prev": {
              "description": "Link to the previous page, or `null` when there is none.\nIt may be set on the first page, and then leads to an empty page.",
              "allOf": [
                {
                  "$ref": "#/$defs/page-link"
                }
              ]
            },
            "next": {
              "description": "Link to the next page, or `null` when there is none: stop paging when `next` is `null`.\nIt may be set on the last page when that page is full, and then leads to an empty page whose `next` is `null`.",
              "allOf": [
                {
                  "$ref": "#/$defs/page-link"
                }
              ]
            }
          }
        }
      }
    },
    "createdAt": {
      "title": "createdAt",
      "description": "**Read-only.** UTC timestamp of the moment this object was created.\nThe UTC offset may be written `Z` or `+00:00`, with up to 7 fractional digits of a second.",
      "type": "string",
      "format": "date-time"
    },
    "job-qualification": {
      "title": "job-qualification",
      "description": "A job-qualification is an object that represents an employee profile regarding their skillset.\n\nIt is composed of both:\n- a [profession](./profession), which indicates the nature of their job.\n- a rank (number), which indicates either their level of expertise or of responsibilities in the company.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "const": "job-qualification"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "description": "**Must be unique.** Invariant name of this job-qualification. Can be translated through `t9n.title[{langTag}]`. Leading and trailing spaces are automatically removed."
        },
        "profession": {
          "$ref": "#/$defs/profession-reference"
        },
        "rank": {
          "description": "The lower the rank, the \"lower\" in the company's hierarchy (i.e. the CEO is at max rank). Maximum rank can be set trough configuration.",
          "type": "integer",
          "minimum": 1,
          "format": "int32"
        },
        "t9n": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "title": {
              "$ref": "#/$defs/t9n"
            }
          }
        },
        "createdAt": {
          "$ref": "#/$defs/createdAt"
        },
        "lastUpdatedAt": {
          "$ref": "#/$defs/lastUpdatedAt"
        },
        "links": {
          "type": "object",
          "additionalProperties": false
        }
      }
    },
    "job-qualification.embedded": {
      "type": "object",
      "properties": {
        "embedded": {
          "description": "No embedded resources on a job-qualification(s) response. Expect an empty object if embedded are requested.",
          "type": [
            "object",
            "null"
          ]
        }
      }
    },
    "job-qualifications": {
      "title": "job-qualifications",
      "description": "A collection of [job-qualification](./job-qualification) objects.",
      "allOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "job-qualifications"
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "totalCount": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int64",
              "minimum": 0,
              "description": "Total number of job-qualification resources across all pages that satisfy query parameters."
            },
            "items": {
              "type": "array",
              "minItems": 0,
              "maxItems": 100,
              "description": "Paginated list of job-qualification resources.",
              "items": {
                "$ref": "#/$defs/job-qualification"
              }
            }
          }
        },
        {
          "$ref": "#/$defs/collection.links"
        }
      ]
    },
    "lastUpdatedAt": {
      "title": "lastUpdatedAt",
      "description": "**Read-only.** UTC timestamp of the moment this object was last updated.\nSet upon creation, update or deletion of the object.\nThe UTC offset may be written `Z` or `+00:00`, with up to 7 fractional digits of a second.",
      "type": "string",
      "format": "date-time"
    },
    "page-link": {
      "title": "page-link",
      "description": "Link to another page of a collection.",
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "description": "URL of the page."
        }
      },
      "required": [
        "href"
      ]
    },
    "profession-reference": {
      "title": "profession-reference",
      "description": "Reference to a [profession](../employee-occupations/profession) resource.",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "const": "profession",
          "enum": [
            "profession"
          ],
          "readOnly": true
        },
        "url": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        }
      }
    },
    "t9n": {
      "type": [
        "object",
        "null"
      ],
      "title": "Translations",
      "description": "Used for translation purposes. Object is structured as a dictionary whose keys refer to translated properties of the parent object, and whose values are a dictionary of supported languages.\n\nOn the parent object, the translated property value is considered the \"invariant\" translation. It is expected to show this value whenever the user's language has no translation in `t9n`.\n\nLanguages are identified through their RFC 4646 language tag.",
      "properties": {
        "de-DE": {
          "description": "German (Germany)",
          "type": [
            "string",
            "null"
          ]
        },
        "en-US": {
          "description": "English (United States of America)",
          "type": [
            "string",
            "null"
          ]
        },
        "en-GB": {
          "description": "English (Great Britain)",
          "type": [
            "string",
            "null"
          ]
        },
        "es-ES": {
          "description": "Spanish (Spain)",
          "type": [
            "string",
            "null"
          ]
        },
        "fr-FR": {
          "description": "French (France)",
          "type": [
            "string",
            "null"
          ]
        },
        "fr-CH": {
          "description": "French (Switzerland)",
          "type": [
            "string",
            "null"
          ]
        },
        "it-IT": {
          "description": "Italian (Italy)",
          "type": [
            "string",
            "null"
          ]
        },
        "nl-BE": {
          "description": "Dutch (Belgium)",
          "type": [
            "string",
            "null"
          ]
        },
        "nl-NL": {
          "description": "Dutch (Netherlands)",
          "type": [
            "string",
            "null"
          ]
        },
        "pt-PT": {
          "description": "Portuguese (Portugal)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}