json_schema: {
      "additionalProperties": false,
      "description": "Zone",
      "properties": {
          "zone": {
              "additionalProperties": false,
              "oneOf": [
                  {
                      "description": "Primary zone",
                      "properties": {
                          "masters": {
                              "maxItems": 0,
                              "type": [
                                  "null",
                                  "array"
                              ]
                          },
                          "type": {
                              "enum": [
                                  "PRIMARY"
                              ],
                              "type": "string"
                          }
                      },
                      "required": [
                          "email"
                      ]
                  },
                  {
                      "description": "Secondary zone",
                      "properties": {
                          "masters": {
                              "description": "Masters for this Zone",
                              "items": {
                                  "format": "ipandport",
                                  "type": "string"
                              },
                              "minItems": 1,
                              "type": "array",
                              "_uniqueItems": true
                          },
                          "type": {
                              "enum": [
                                  "SECONDARY"
                              ],
                              "type": "string"
                          }
                      },
                      "required": [
                          "type",
                          "masters"
                      ]
                  }
              ],
              "properties": {
                  "action": {
                      "description": "Zone Action",
                      "enum": [
                          "CREATE",
                          "DELETE",
                          "UPDATE",
                          "NONE"
                      ],
                      "readOnly": true,
                      "type": "string"
                  },
                  "created_at": {
                      "description": "Date and time of Zone creation",
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string"
                  },
                  "description": {
                      "description": "Description for the zone",
                      "maxLength": 160,
                      "type": [
                          "string",
                          "null"
                      ]
                  },
                  "email": {
                      "description": "Hostmaster email address",
                      "format": "email",
                      "maxLength": 255,
                      "type": "string"
                  },
                  "id": {
                      "description": "Zone identifier",
                      "format": "uuid",
                      "readOnly": true,
                      "type": "string"
                  },
                  "links": {
                      "additionalProperties": false,
                      "properties": {
                          "self": {
                              "format": "url",
                              "type": "string"
                          }
                      },
                      "type": "object"
                  },
                  "masters": {
                      "description": "Masters for this Zone",
                      "items": {
                          "type": "string"
                      },
                      "type": [
                          "array",
                          "null"
                      ],
                      "_uniqueItems": true
                  },
                  "name": {
                      "description": "Zone name",
                      "format": "domainname",
                      "immutable": true,
                      "maxLength": 255,
                      "type": "string"
                  },
                  "pool_id": {
                      "description": "Pool identifier",
                      "format": "uuid",
                      "immutable": true,
                      "type": "string"
                  },
                  "project_id": {
                      "description": "Project identifier",
                      "immutable": true,
                      "maxLength": 36,
                      "type": [
                          "string",
                          "null"
                      ]
                  },
                  "serial": {
                      "description": "Zone serial number",
                      "maximum": 4294967295,
                      "minimum": 0,
                      "readOnly": true,
                      "type": "integer"
                  },
                  "status": {
                      "description": "Zone Status",
                      "enum": [
                          "ACTIVE",
                          "PENDING",
                          "ERROR"
                      ],
                      "readOnly": true,
                      "type": "string"
                  },
                  "transferred_at": {
                      "description": "Date and time of last successful transfer",
                      "format": "date-time",
                      "readOnly": true,
                      "type": [
                          "string",
                          "null"
                      ]
                  },
                  "ttl": {
                      "description": "Default time to live",
                      "maximum": 2147483647,
                      "minimum": 0,
                      "type": "integer"
                  },
                  "type": {
                      "description": "Zone Type",
                      "enum": [
                          "PRIMARY",
                          "SECONDARY"
                      ],
                      "type": "string"
                  },
                  "updated_at": {
                      "description": "Date and time of last zone modification",
                      "format": "date-time",
                      "readOnly": true,
                      "type": [
                          "string",
                          "null"
                      ]
                  },
                  "version": {
                      "description": "Zone version number",
                      "readOnly": true,
                      "type": "integer"
                  }
              },
              "required": [
                  "name"
              ],
              "type": "object"
          }
      },
      "required": [
          "zone"
      ],
      "title": "zone"
  }