{
  "title": "codedValue",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "The coded value domain includes both the actual value that is stored in a database and a description of what the code value means.",
  "properties": {
    "codedValues": {
      "type": "array",
      "description": "A set of valid values with unique names.",
      "items": {
        "type": "object",
        "$ref": "codedValue_schema.json"
      },
      "uniqueItems": true
    },
    "name": {
      "type": "string",
      "description": "The domain name."
    },
    "type": {
      "type": "string",
      "description": "String value representing the domain type.",
      "enum": [
        "codedValue"
      ]
    }
  },
  "required": [
    "codedValues",
    "type"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "codedValue",
        "code": {
          "codedValue": {
            "type": "codedValue",
            "name": "Material",
            "codedValues": [
              {
                "name": "Aluminum",
                "code": "AL"
              },
              {
                "name": "Copper",
                "code": "CU"
              },
              {
                "name": "Steel",
                "code": "STEL"
              },
              {
                "name": "Not Applicable",
                "code": "NA"
              }
            ]
          }
        }
      }
    ]
  }
}
