{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cosuno/json-schema/cosuno-work-category-response-schema.json",
  "title": "WorkCategoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cosuno-work-categories-api-openapi.yml#/components/schemas/WorkCategoryResponse",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the work category."
    },
    "name": {
      "type": "string",
      "description": "Name of the work category. For network categories this is the canonical German name."
    },
    "type": {
      "$ref": "#/$defs/WORK_CATEGORY_TYPE",
      "description": "`network` for categories from Cosuno's shared catalog; `company` for private categories owned by your company."
    },
    "translations": {
      "$ref": "#/$defs/WorkCategoryTranslations",
      "description": "Translated names of the work category, keyed by language code. Only present for network categories. Languages without a translation are omitted from the map."
    }
  },
  "required": [
    "id",
    "name",
    "type"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "Partial_Record_LANGUAGE.string__": {
      "properties": {
        "bg": {
          "type": "string"
        },
        "bs": {
          "type": "string"
        },
        "cs": {
          "type": "string"
        },
        "da": {
          "type": "string"
        },
        "de": {
          "type": "string"
        },
        "el": {
          "type": "string"
        },
        "en": {
          "type": "string"
        },
        "es": {
          "type": "string"
        },
        "et": {
          "type": "string"
        },
        "fi": {
          "type": "string"
        },
        "fr": {
          "type": "string"
        },
        "hr": {
          "type": "string"
        },
        "hu": {
          "type": "string"
        },
        "it": {
          "type": "string"
        },
        "lt": {
          "type": "string"
        },
        "lv": {
          "type": "string"
        },
        "mk": {
          "type": "string"
        },
        "nl": {
          "type": "string"
        },
        "pl": {
          "type": "string"
        },
        "pt": {
          "type": "string"
        },
        "ro": {
          "type": "string"
        },
        "sk": {
          "type": "string"
        },
        "sl": {
          "type": "string"
        },
        "sq": {
          "type": "string"
        },
        "sr": {
          "type": "string"
        },
        "sv": {
          "type": "string"
        }
      },
      "type": "object",
      "description": "Make all properties in T optional"
    },
    "WORK_CATEGORY_TYPE": {
      "type": "string",
      "enum": [
        "company",
        "network"
      ]
    },
    "WorkCategoryTranslations": {
      "$ref": "#/$defs/Partial_Record_LANGUAGE.string__",
      "description": "Translated names of a work category, keyed by language code. Languages without a translation are omitted from the map."
    }
  }
}