{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/components/schemas/PkgIconVM",
  "components": {
    "schemas": {
      "PkgIconVM": {
        "required": [
          "categoryKey",
          "content",
          "contentType",
          "key",
          "name"
        ],
        "type": "object",
        "properties": {
          "categoryKey": {
            "minLength": 1,
            "enum": [
              "application",
              "workflow_state",
              "space",
              "object_type",
              "dashboard",
              "search",
              "application_logo",
              "app_icons",
              "chart"
            ],
            "type": "string"
          },
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "contentType": {
            "maxLength": 100,
            "minLength": 1,
            "enum": [
              "image/svg+xml"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "enum": [
              "active",
              "inactive",
              "in-validation",
              "hidden"
            ],
            "type": "string",
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgEntityTranslationVM"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgEntityTranslationVM": {
        "required": [
          "languageKey"
        ],
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "languageKey": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "shortcut": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}