{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:SingleFamilyResidence",
  "title": "SingleFamilyResidence",
  "description": "Residence type: Single-family home.",
  "type": "object",
  "allOf": [
    {
      "description": "A house is a building or structure that has the ability to be occupied for habitation by humans or other creatures (source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/House).",
      "$ref": "schema:House"
    }
  ],
  "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"
    }
  }
}
