{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/viridi-parente/main/json-schema/viridi-parente-widget-type-details-schema.json",
  "title": "WidgetTypeDetails",
  "description": "A JSON value representing the Widget Type Details.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viridi-parente-widget-type-controller-api-openapi.yml#/components/schemas/WidgetTypeDetails",
  "properties": {
    "fqn": {
      "type": "string",
      "description": "Unique FQN that is used in dashboards as a reference widget type",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Widget name used in search and UI",
      "readOnly": true
    },
    "deprecated": {
      "type": "boolean",
      "description": "Whether widget type is deprecated."
    },
    "image": {
      "type": "string",
      "description": "Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled."
    },
    "description": {
      "type": "string",
      "description": "Description of the widget"
    },
    "descriptor": {
      "$ref": "#/$defs/JsonNode"
    },
    "id": {
      "$ref": "#/$defs/WidgetTypeId",
      "description": "JSON object with the Widget Type Id. Specify this field to update the Widget Type. Referencing non-existing Widget Type Id will cause error. Omit this field to create new Widget Type."
    },
    "createdTime": {
      "type": "integer",
      "format": "int64",
      "description": "Timestamp of the Widget Type creation, in milliseconds",
      "readOnly": true
    },
    "tenantId": {
      "$ref": "#/$defs/TenantId",
      "description": "JSON object with Tenant Id.",
      "readOnly": true
    },
    "tags": {
      "type": "array",
      "description": "Tags of the widget type",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "JsonNode": {
      "description": "A value representing the any type (object or primitive)"
    },
    "TenantId": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "ID of the entity, time-based UUID v1"
        },
        "entityType": {
          "type": "string",
          "description": "string",
          "enum": [
            "TENANT"
          ]
        }
      },
      "required": [
        "entityType",
        "id"
      ]
    },
    "WidgetTypeId": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "ID of the entity, time-based UUID v1"
        },
        "entityType": {
          "type": "string",
          "description": "string",
          "enum": [
            "WIDGET_TYPE"
          ]
        }
      },
      "required": [
        "entityType",
        "id"
      ]
    }
  }
}