{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lucca/json-schema/lucca-taxonomy-labels-read-schema.json",
  "title": "taxonomy-labels.read",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lucca-taxonomies-api-openapi.yml#/components/schemas/taxonomy-labels.read",
  "allOf": [
    {
      "$ref": "#/$defs/taxonomy-labels"
    },
    {
      "$ref": "#/$defs/taxonomy-label.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"
    },
    "isArchived": {
      "type": "boolean",
      "description": "When false, resource is not archived.\nWhen true, resource is archived.\n\nYou can update this property in order to set the\narchival status of the resource."
    },
    "lastArchivedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "**Read-only.** UTC timestamp of the moment this object was last archived through its `isArchived` property.\nThe UTC offset may be written `Z` or `+00:00`, with up to 7 fractional digits of a second."
    },
    "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"
      ]
    },
    "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"
          ]
        }
      }
    },
    "taxonomy-label": {
      "title": "taxonomy-label",
      "description": "Represents a label of a taxonomy, which is used to classify resources (e.g. employees).",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "const": "taxonomy-label"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "taxonomy": {
          "$ref": "#/$defs/taxonomy-reference"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "remoteId": {
          "type": [
            "null",
            "string"
          ],
          "minLength": 1
        },
        "applicabilitySchema": {
          "description": "JSON schema of the applicable resources this taxonomy label only applies to.",
          "type": [
            "null",
            "object"
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/createdAt"
        },
        "lastUpdatedAt": {
          "$ref": "#/$defs/lastUpdatedAt"
        },
        "isArchived": {
          "$ref": "#/$defs/isArchived"
        },
        "lastArchivedAt": {
          "$ref": "#/$defs/lastArchivedAt"
        },
        "t9n": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "name": {
              "$ref": "#/$defs/t9n"
            }
          }
        },
        "links": {
          "type": "object",
          "additionalProperties": false
        }
      }
    },
    "taxonomy-label.embedded": {
      "type": "object",
      "properties": {
        "embedded": {
          "description": "No embedded resources on a taxonomy-label(s) response. Expect an empty object if embedded are requested.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": false
        }
      }
    },
    "taxonomy-labels": {
      "title": "taxonomy-labels",
      "description": "A collection of [taxonomy-label](/api-reference/latest/taxonomies/taxonomy-label) objects.",
      "allOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "taxonomy-labels"
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "totalCount": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int64",
              "minimum": 0,
              "description": "Total number of profession resources across all pages that satisfy query parameters."
            },
            "items": {
              "type": "array",
              "minItems": 0,
              "maxItems": 1000,
              "items": {
                "$ref": "#/$defs/taxonomy-label"
              }
            }
          }
        },
        {
          "$ref": "#/$defs/collection.links"
        }
      ]
    },
    "taxonomy-reference": {
      "title": "taxonomy-reference",
      "description": "Reference to a taxonomy.",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "const": "taxonomy",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        }
      }
    }
  }
}