{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Employees schema",
	"description": "A schema for retrieval of employees.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#get-employees-employeeid",
	"properties": {
		"employeeNumber": {
			"type": "integer",
			"minimum": 1,
			"filterable": true,
			"sortable": true,
			"description": "The employee number is a unique numerical identifier with a maximum of 9 digits."
		},
		"employeeGroup": {
			"type": "object",
			"description": "The group to which the employee belongs.",
			"properties": {
				"employeeGroupNumber": {
					"type": "integer",
					"minimum": 1,
					"filterable": true,
					"sortable": true,
					"description": "The unique identifier of the employee group."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique link reference to the employee group item.",
					"required": true
				}
			}
		},
		"name": {
			"type": "string",
			"maxLength": 250,
			"sortable": true,
			"filterable": true,
			"description": "The name of the employee"
		},
		"customers": {
			"type": "string",
			"format": "uri",
			"description": "A link to the collection of customers which has the employee as a reference."
		},
		"draftInvoices": {
			"type": "string",
			"format": "uri",
			"description": "A link to the collection of draft invoices which has the employee as a reference."
		},
		"bookedInvoices": {
			"type": "string",
			"format": "uri",
			"description": "A link to the collection of booked invoices which has the employee as a reference."
		},
		"email": {
			"type": "string",
			"maxLength": 250,
			"sortable": true,
			"description": "The email address of the employee"
		},
		"phone": {
			"type": "string",
			"maxLength": 250,
			"sortable": true,
			"filterable": true,
			"description": "The phone number of the employee"
		},
		"barred": {
			"type": "boolean",
			"filterable": true,
			"description": "Shows if the employee is barred from being used."
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "A unique link reference to the employee item.",
			"required": true
		}
	}
}
