{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"$id": "http://json-schema.int.adscore.com/gwoc/domain/update.schema.json",
	"title": "GWoC Domain Update",
	"description": "Update domain in GWoC mapping system",
	"type": "object",
	"required": [
		"route_params", "body"
	],
	"properties": {
		"route": {
			"type": "object",
			"properties": {
				"path": {
					"const": "/account/{account_id}/gwoc/domain/{id}"
				},
				"methods": {
					"const": ["PUT"]
				}
			}
		},
		"route_params": {
			"type": "object",
			"description": "Route attributes",
			"required": [
				"account_id", "id"
			],
			"properties": {
				"account_id": {
					"type": "integer",
                    "description": "Account ID"
				},
                "id": {
					"type": "integer",
                    "description": "GWoC Domain ID"
				}
			}
		},
		"body": {
			"type": "object",
			"description": "Request body",
			"properties": {
				"zone_id": {
					"description": "Zone bound to domain",
					"type": "integer"
				},
				"expect": {
					"description": "Results allowed to pass through",
					"type": "array",
					"items": {
						"type": "integer",
						"uniqueItems": true,
						"enum": [0, 3, 6, 9]
					}
				},
				"flags": {
					"description": "Additional configuration flags",
					"type": "array",
					"items": {
						"type": "string",
						"uniqueItems": true,
						"enum": ["hotlink"]
					}
				}
			},
			"additionalProperties": false
		}
	}
}
