{
	"id": "BedDetails.json",
	"title": "Bed Details",
	"description": "An entity holding detailed information about the available bed types, e.g. the quantity of twin beds for a hotel room. For the single case of just one bed of a certain type, you can use bed directly with a text. See also BedType (under development).",
	"media": {"type": "application/json;profile=http://schema.org/BedDetails"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}],
	"type": "object",
	"properties": {
		"numberOfBeds": {"$ref": "#/definitions/numberOfBeds"},
		"typeOfBed": {"$ref": "#/definitions/typeOfBed"}
	},
	"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": "{+$}"
					}]
				}
			]
		},
		"numberOfBeds": {
			"title": "Number of Beds",
			"description": "The quantity of the given bed type available in the HotelRoom, Suite, House, or Apartment.",
			"type": "number"
		},
		"typeOfBed": {
			"title": "Type of Bed",
			"description": "The type of bed to which the BedDetail refers, i.e. the type of bed available in the quantity indicated by quantity.",
			"anyOf": [{"$ref": "BedType.json#/definitions/possibleRef"}, {"type": "string"}]
		}
	}
}