{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-dashboard-gadget-schema.json",
  "title": "DashboardGadget",
  "description": "Details of a gadget.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-dashboards-api-openapi.yml#/components/schemas/DashboardGadget",
  "additionalProperties": false,
  "properties": {
    "color": {
      "description": "The color of the gadget. Should be one of `blue`, `red`, `yellow`, `green`, `cyan`, `purple`, `gray`, or `white`.",
      "enum": [
        "blue",
        "red",
        "yellow",
        "green",
        "cyan",
        "purple",
        "gray",
        "white"
      ],
      "readOnly": true,
      "type": "string"
    },
    "id": {
      "description": "The ID of the gadget instance.",
      "format": "int64",
      "readOnly": true,
      "type": "integer"
    },
    "moduleKey": {
      "description": "The module key of the gadget type.",
      "readOnly": true,
      "type": "string"
    },
    "position": {
      "allOf": [
        {
          "$ref": "#/$defs/DashboardGadgetPosition"
        }
      ],
      "description": "The position of the gadget.",
      "readOnly": true
    },
    "title": {
      "description": "The title of the gadget.",
      "readOnly": true,
      "type": "string"
    },
    "uri": {
      "description": "The URI of the gadget type.",
      "readOnly": true,
      "type": "string"
    }
  },
  "required": [
    "color",
    "id",
    "position",
    "title"
  ],
  "type": "object",
  "$defs": {
    "DashboardGadgetPosition": {
      "additionalProperties": false,
      "description": "Details of a gadget position.",
      "properties": {
        "The column position of the gadget.": {
          "format": "int32",
          "type": "integer"
        },
        "The row position of the gadget.": {
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "The column position of the gadget.",
        "The row position of the gadget."
      ],
      "type": "object",
      "writeOnly": true
    }
  }
}