24 lines
1.7 KiB
JSON
24 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "schema:Apartment",
|
|
"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).",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"description": "An accommodation is a place that can accommodate human beings, e.g. a hotel room, a camping pitch, or a meeting room. Many accommodations are for overnight stays, but this is not a mandatory requirement.\nFor more specific types of accommodations not defined in schema.org, one can use [[additionalType]] with external vocabularies.\n\nSee also the dedicated document on the use of schema.org for marking up hotels and other forms of accommodations.\n",
|
|
"$ref": "schema:Accommodation"
|
|
}
|
|
],
|
|
"properties": {
|
|
"numberOfRooms": {
|
|
"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": "schema:QuantitativeValue" }]
|
|
},
|
|
"occupancy": {
|
|
"description": "The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).\nTypical unit code(s): C62 for person.",
|
|
"$ref": "schema:QuantitativeValue"
|
|
}
|
|
}
|
|
}
|