{
	"id": "Apartment.json",
	"title": "Apartment",
	"description": "An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (Source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/Apartment).",
	"media": {"type": "application/json;profile=http://schema.org/Apartment"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Place.json"}, {"$ref": "Accommodation.json"}],
	"type": "object",
	"properties": {
		"numberOfRooms": {"$ref": "#/definitions/numberOfRooms"},
		"occupancy": {"$ref": "QuantitativeValue.json#/definitions/possibleRef"}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"numberOfRooms": {
			"title": "Number of Rooms",
			"description": "The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business.\nTypical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.",
			"anyOf": [{"type": "number"}, {"$ref": "QuantitativeValue.json#/definitions/possibleRef"}]
		}
	}
}