{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Accounting Year Period schema",
	"description": "A schema for retrieving a period of an accounting year.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#get-accounts-accountnumber-accounting-years-accountingyear-periods-accountingyearperiod",
	"properties": {
		"periodNumber": {
			"type": "integer",
			"minimum": 1,
			"description": "A unique identifier of the period."
		},
		"accountingYear": {
			"type": "object",
			"description": "The accounting year the period is part of.",
			"properties": {
				"year": {
					"type": "string",
					"maxLength": 4,
					"description": "A unique identifier of the accounting year."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique reference to the accounting year resource.",
					"required": true
				}
			}
		},
		"fromDate": {
			"type": "string",
			"format": "full-date",
			"pattern": "\\d{4}-\\d{2}-\\d{2}",
			"sortable": true,
			"filterable": true,
			"defaultsorting": "ascending",
			"description": "The first date in the period formatted according to ISO-8601(YYYY-MM-DD)."
		},
		"toDate": {
			"type": "string",
			"format": "full-date",
			"pattern": "\\d{4}-\\d{2}-\\d{2}",
			"sortable": true,
			"filterable": true,
			"description": "The last date in the period formatted according to ISO-8601(YYYY-MM-DD)."
		},
		"closed": {
			"type": "boolean",
			"sortable": true,
			"filterable": true,
			"description": "Determines if the period is closed for further transactions."
		},
		"entries": {
			"type": "string",
			"format": "uri",
			"description": "A link to a collection of all entries booked in the period."
		},
		"totals": {
			"type": "string",
			"format": "uri",
			"description": "A link to the chart of accounts with the periods total in base currency."
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "A unique link reference to the period item.",
			"required": true
		}
	}
}