{
  "title": "Raster UniqueValue Renderer",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "Defines the color of each raster cell based on an attribute. This is done by using unique colors to represent cells with equal attribute values.",
  "properties": {
    "authoringInfo": {
      "type": "object",
      "description": "An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.",
      "$ref": "authoringInfo_schema.json"
    },
    "colorUniqueValueInfos": {
      "type": "array",
      "description": "Unique value infos.",
      "items": {
        "type": "object",
        "$ref": "colorUniqueValueInfo_schema.json"
      }
    },
    "defaultColor": {
      "description": "The defaultColor on the renderer that get assigned to features with no value or features that do not fall within the configured data.",
      "$ref": "color_schema.json"
    },
    "defaultLabel": {
      "type": "string",
      "description": "Default label for the default symbol used to draw unspecified values."
    },
    "field": {
      "type": "string",
      "description": "The name of the field that is used for the renderer."
    },
    "legendOptions": {
      "type": "object",
      "description": "A legend containing one title, which is a string describing the renderer in the legend.",
      "$ref": "rendererLegendOptions_schema.json"
    },
    "type": {
      "type": "string",
      "description": "Specifies the type of renderer used.",
      "enum": [
        "rasterUniqueValueRenderer"
      ]
    }
  },
  "required": [
    "colorUniqueValueInfos",
    "field",
    "type"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "rasterUniqueValueRenderer",
        "code": {
          "renderer": {
            "type": "rasterUniqueValueRenderer",
            "field": "ClassName",
            "colorUniqueValueInfos": [
              {
                "values": [
                  "Open Water"
                ],
                "label": "Open Water",
                "description": "Open Water",
                "color": [
                  71,
                  107,
                  161,
                  255
                ]
              },
              {
                "values": [
                  "Perennial Snow/Ice"
                ],
                "label": "Perennial Snow/Ice",
                "description": "Perennial Snow/Ice",
                "color": [
                  209,
                  222,
                  250,
                  255
                ]
              }
            ]
          }
        }
      }
    ]
  }
}
