{
  "title": "field",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "Contains information about an attribute field.",
  "properties": {
    "alias": {
      "type": "string",
      "description": "A string defining the field alias."
    },
    "defaultValue": {
      "type": [
        "null",
        "number",
        "string"
      ],
      "description": "The default value set for the field."
    },
    "domain": {
      "type": "object",
      "description": "The domain objects if applicable.",
      "$ref": "domain_schema.json"
    },
    "editable": {
      "type": "boolean",
      "description": "A Boolean defining whether this field is editable."
    },
    "length": {
      "type": "integer",
      "description": "A number defining how many characters are allowed in a string field."
    },
    "name": {
      "type": "string",
      "description": "A string defining the field name."
    },
    "nullable": {
      "type": "boolean",
      "description": "A Boolean defining whether this field can have a null value."
    },
    "type": {
      "type": "string",
      "description": "A string defining the field type.",
      "enum": [
        "esriFieldTypeBlob",
        "esriFieldTypeDate",
        "esriFieldTypeDouble",
        "esriFieldTypeGUID",
        "esriFieldTypeGeometry",
        "esriFieldTypeGlobalID",
        "esriFieldTypeInteger",
        "esriFieldTypeLong",
        "esriFieldTypeOID",
        "esriFieldTypeRaster",
        "esriFieldTypeSingle",
        "esriFieldTypeSmallInteger",
        "esriFieldTypeString",
        "esriFieldTypeXML"
      ]
    }
  },
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "field",
        "code": {
          "field": {
            "alias": "Postcode",
            "name": "relationships/2/Postcode",
            "editable": false,
            "type": "esriFieldTypeString"
          }
        }
      }
    ]
  }
}
