{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lucca/json-schema/lucca-job-qualification-read-schema.json",
  "title": "job-qualification.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-qualification.read",
  "allOf": [
    {
      "$ref": "#/$defs/job-qualification"
    },
    {
      "$ref": "#/$defs/job-qualification.embedded"
    }
  ],
  "$defs": {
    "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"
          ]
        }
      }
    },
    "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"
    },
    "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"
          ]
        }
      }
    }
  }
}