{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companydata-dk/json-schema/companydata-dk-property-detail-response-schema.json",
  "title": "PropertyDetailResponse",
  "description": "Full property details including transfers, transactions, and administrators.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/companydata-dk-openapi.yml#/components/schemas/PropertyDetailResponse",
  "properties": {
    "bfe_number": {
      "type": "integer",
      "title": "Bfe Number"
    },
    "withheld": {
      "type": "boolean",
      "title": "Withheld",
      "description": "True when the property's details are withheld after a granted objection from the owner: only number, type, address and parcels are given",
      "default": false
    },
    "property_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Property Type",
      "description": "samlet_fast_ejendom, ejerlejlighed or bygning_paa_fremmed_grund"
    },
    "property_type_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Property Type Code",
      "description": "BBR ejendomstype code (1, 2 or 3)"
    },
    "ejerlejlighedsnummer": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ejerlejlighedsnummer"
    },
    "matrikler": {
      "items": {
        "$ref": "#/$defs/PropertyLookupMatrikel"
      },
      "type": "array",
      "title": "Matrikler",
      "description": "Parcels (ejerlav + matrikelnummer) the property holds"
    },
    "address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "location": {
      "anyOf": [
        {
          "$ref": "#/$defs/app__models__property__GeoLocation"
        },
        {
          "type": "null"
        }
      ]
    },
    "building_data": {
      "anyOf": [
        {
          "$ref": "#/$defs/PropertyBuildingData"
        },
        {
          "type": "null"
        }
      ]
    },
    "matrikel_polygons": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MatrikelPolygon"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Matrikel Polygons"
    },
    "owner_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Type",
      "description": "The current owners' shared owner_type, 'mixed' when they differ, null when unknown"
    },
    "owners": {
      "items": {
        "$ref": "#/$defs/PropertyOwner"
      },
      "type": "array",
      "title": "Owners",
      "description": "Current owners of every kind (companies with CVR and name)"
    },
    "ownerships": {
      "items": {
        "$ref": "#/$defs/PropertyOwnershipResponse"
      },
      "type": "array",
      "title": "Ownerships"
    },
    "transfers": {
      "items": {
        "$ref": "#/$defs/PropertyTransferResponse"
      },
      "type": "array",
      "title": "Transfers"
    },
    "administrators": {
      "items": {
        "$ref": "#/$defs/PropertyAdministratorResponse"
      },
      "type": "array",
      "title": "Administrators"
    },
    "energy_label": {
      "anyOf": [
        {
          "$ref": "#/$defs/PropertyEnergyLabelResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "Only with include=energy_label (or all); null when no label data exists"
    },
    "climate": {
      "anyOf": [
        {
          "$ref": "#/$defs/ClimateRiskResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "Only with include=climate (or all); null when the property cannot be assessed"
    },
    "planning": {
      "anyOf": [
        {
          "$ref": "#/$defs/PropertyPlanningResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "Only with include=planning (or all); null when the property cannot be assessed"
    },
    "valuation": {
      "anyOf": [
        {
          "$ref": "#/$defs/PropertyValuationResponse"
        },
        {
          "type": "null"
        }
      ],
      "description": "Only with include=valuation (or all); null when no public valuation is known"
    },
    "meta": {
      "additionalProperties": true,
      "type": "object",
      "title": "Meta"
    }
  },
  "type": "object",
  "required": [
    "bfe_number",
    "ownerships",
    "transfers",
    "administrators"
  ],
  "$defs": {
    "BuildingInfo": {
      "properties": {
        "usage_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Usage Code"
        },
        "year_built": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year Built"
        },
        "year_renovated": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year Renovated"
        },
        "total_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Area"
        },
        "residential_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Residential Area"
        },
        "commercial_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Commercial Area"
        },
        "floors": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Floors"
        },
        "heating_installation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Heating Installation"
        },
        "heating_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Heating Source"
        },
        "wall_material": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Wall Material"
        },
        "roof_material": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Roof Material"
        }
      },
      "type": "object",
      "title": "BuildingInfo",
      "description": "Building data from BBR enrichment."
    },
    "BundleProperty": {
      "properties": {
        "bfe_number": {
          "type": "integer",
          "title": "Bfe Number"
        },
        "address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Address"
        }
      },
      "type": "object",
      "required": [
        "bfe_number"
      ],
      "title": "BundleProperty",
      "description": "A sibling property in the same transaction bundle."
    },
    "ClimateRiskResponse": {
      "properties": {
        "version": {
          "type": "integer",
          "title": "Version"
        },
        "bluespot_at_point": {
          "type": "boolean",
          "title": "Bluespot At Point"
        },
        "bluespot_fill_mm": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bluespot Fill Mm"
        },
        "bluespot_share_10m": {
          "type": "number",
          "title": "Bluespot Share 10M",
          "default": 0.0
        },
        "havvand_flood_level_m": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Havvand Flood Level M"
        },
        "assessed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assessed At"
        }
      },
      "type": "object",
      "required": [
        "version",
        "bluespot_at_point"
      ],
      "title": "ClimateRiskResponse",
      "description": "Flood risk assessment for a property (DHM bluespot + havvand paa land)."
    },
    "EnergyLabelBuilding": {
      "properties": {
        "number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Number"
        },
        "use_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Use Code"
        },
        "year_built": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year Built"
        },
        "heat_supply": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Heat Supply"
        }
      },
      "type": "object",
      "title": "EnergyLabelBuilding",
      "description": "Building covered by an energy label (from EMOData)."
    },
    "EnergyLabelItem": {
      "properties": {
        "serial": {
          "type": "string",
          "title": "Serial"
        },
        "classification": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Classification",
          "description": "A2020/A2015/A2010/B..G"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status",
          "description": "VALID/EXPIRED/..."
        },
        "valid_from": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valid From"
        },
        "valid_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valid To"
        },
        "type_usage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type Usage"
        },
        "based_on": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Based On"
        },
        "demo_link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Demo Link",
          "description": "sparenergi.dk deep link"
        },
        "buildings": {
          "items": {
            "$ref": "#/$defs/EnergyLabelBuilding"
          },
          "type": "array",
          "title": "Buildings"
        }
      },
      "type": "object",
      "required": [
        "serial"
      ],
      "title": "EnergyLabelItem",
      "description": "A single energy label on a property (Energistyrelsen EMOData)."
    },
    "GeoPolygon": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type",
          "default": "Polygon"
        },
        "coordinates": {
          "items": {
            "items": {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Coordinates"
        }
      },
      "type": "object",
      "required": [
        "coordinates"
      ],
      "title": "GeoPolygon",
      "description": "GeoJSON Polygon."
    },
    "MatrikelPolygon": {
      "properties": {
        "matrikelnummer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Matrikelnummer"
        },
        "ejerlav_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ejerlav Id"
        },
        "geometry": {
          "$ref": "#/$defs/GeoPolygon"
        }
      },
      "type": "object",
      "required": [
        "geometry"
      ],
      "title": "MatrikelPolygon",
      "description": "A matrikel parcel polygon with metadata."
    },
    "OwnershipShare": {
      "properties": {
        "numerator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Numerator",
          "description": "Share numerator (tæller)"
        },
        "denominator": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Denominator",
          "description": "Share denominator (nævner)"
        }
      },
      "type": "object",
      "title": "OwnershipShare",
      "description": "Ownership share expressed as a fraction (numerator/denominator)."
    },
    "PlanningPlan": {
      "properties": {
        "planid": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Planid"
        },
        "plannr": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plannr"
        },
        "plannavn": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plannavn"
        },
        "plantype": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plantype",
          "description": "Plandata plan type code (e.g. 20.1)"
        },
        "anvendelse": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Anvendelse",
          "description": "General use category (anvendelse generel)"
        },
        "zonestatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Zonestatus"
        },
        "fremtidig_zonestatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fremtidig Zonestatus"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status",
          "description": "Plan status code (V=vedtaget, F=forslag)"
        },
        "dato_forslag": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dato Forslag"
        },
        "dato_vedtaget": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dato Vedtaget"
        },
        "dato_ikraft": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dato Ikraft"
        },
        "doklink": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Doklink",
          "description": "Link to the plan document (PDF)"
        },
        "kommunenavn": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Kommunenavn"
        },
        "distrikt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Distrikt"
        },
        "bebygpct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bebygpct",
          "description": "Max building coverage percentage"
        },
        "maxetager": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxetager"
        },
        "maxbygnhjd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxbygnhjd",
          "description": "Max building height in meters"
        }
      },
      "type": "object",
      "title": "PlanningPlan",
      "description": "A local plan or municipal plan framework covering a property (Plandata.dk)."
    },
    "PropertyAdministratorResponse": {
      "properties": {
        "bfe_number": {
          "type": "integer",
          "title": "Bfe Number"
        },
        "administrator_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Administrator Name"
        },
        "administrator_cvr": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Administrator Cvr"
        },
        "status": {
          "type": "string",
          "title": "Status"
        }
      },
      "type": "object",
      "required": [
        "bfe_number",
        "status"
      ],
      "title": "PropertyAdministratorResponse",
      "description": "Administrator for API response."
    },
    "PropertyBuildingData": {
      "properties": {
        "ejendomstype": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ejendomstype"
        },
        "buildings": {
          "items": {
            "$ref": "#/$defs/BuildingInfo"
          },
          "type": "array",
          "title": "Buildings"
        },
        "units": {
          "items": {
            "$ref": "#/$defs/UnitInfo"
          },
          "type": "array",
          "title": "Units"
        },
        "land_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Land Area"
        }
      },
      "type": "object",
      "title": "PropertyBuildingData",
      "description": "Aggregated building/unit data for a property."
    },
    "PropertyEnergyLabelResponse": {
      "properties": {
        "version": {
          "type": "integer",
          "title": "Version"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source",
          "description": "bfe or bbr lookup path"
        },
        "classification": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Classification",
          "description": "Current headline label"
        },
        "valid_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valid To"
        },
        "label_count": {
          "type": "integer",
          "title": "Label Count",
          "default": 0
        },
        "labels": {
          "items": {
            "$ref": "#/$defs/EnergyLabelItem"
          },
          "type": "array",
          "title": "Labels"
        },
        "assessed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assessed At"
        }
      },
      "type": "object",
      "required": [
        "version"
      ],
      "title": "PropertyEnergyLabelResponse",
      "description": "Energy labels for a property (EMOData lookup, cached on the property)."
    },
    "PropertyLookupMatrikel": {
      "properties": {
        "ejerlavkode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ejerlavkode",
          "description": "Ejerlav code"
        },
        "matrikelnummer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Matrikelnummer"
        }
      },
      "type": "object",
      "title": "PropertyLookupMatrikel"
    },
    "PropertyOwner": {
      "properties": {
        "owner_type": {
          "type": "string",
          "title": "Owner Type",
          "description": "private, social_housing, company, association, housing_cooperative, municipality, other_municipality, region, state, other, not_calculated or unknown"
        },
        "owner_type_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Owner Type Code",
          "description": "EJF ejerforholdskode"
        },
        "owner_type_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Owner Type Text",
          "description": "The register's text for the code"
        },
        "cvr": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cvr",
          "description": "Owning company's CVR (companies only)"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name",
          "description": "Owning company's name (companies only)"
        },
        "share": {
          "anyOf": [
            {
              "$ref": "#/$defs/OwnershipShare"
            },
            {
              "type": "null"
            }
          ],
          "description": "Ownership share (actual, else registered)"
        },
        "since": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Since",
          "description": "Owner since (virkningFra)"
        },
        "primary_contact": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Primary Contact"
        }
      },
      "type": "object",
      "required": [
        "owner_type"
      ],
      "title": "PropertyOwner",
      "description": "A current owner. Companies carry CVR and name; every other owner only its\ntype, share and date. Private owners are never named."
    },
    "PropertyOwnershipResponse": {
      "properties": {
        "bfe_number": {
          "type": "integer",
          "title": "Bfe Number"
        },
        "cvr": {
          "type": "string",
          "title": "Cvr"
        },
        "ownership_type_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ownership Type Code"
        },
        "actual_ownership": {
          "anyOf": [
            {
              "$ref": "#/$defs/OwnershipShare"
            },
            {
              "type": "null"
            }
          ]
        },
        "registered_ownership": {
          "anyOf": [
            {
              "$ref": "#/$defs/OwnershipShare"
            },
            {
              "type": "null"
            }
          ]
        },
        "primary_contact": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Primary Contact"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "effective_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective From"
        },
        "effective_to": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective To"
        },
        "company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Name"
        },
        "address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Address"
        },
        "building_data": {
          "anyOf": [
            {
              "$ref": "#/$defs/PropertyBuildingData"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "bfe_number",
        "cvr",
        "status"
      ],
      "title": "PropertyOwnershipResponse",
      "description": "Single property ownership for API response (excludes raw field)."
    },
    "PropertyPlanningResponse": {
      "properties": {
        "version": {
          "type": "integer",
          "title": "Version"
        },
        "zonestatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Zonestatus",
          "description": "Byzone/Landzone/Sommerhusomraade"
        },
        "lokalplaner": {
          "items": {
            "$ref": "#/$defs/PlanningPlan"
          },
          "type": "array",
          "title": "Lokalplaner"
        },
        "lokalplan_forslag": {
          "items": {
            "$ref": "#/$defs/PlanningPlan"
          },
          "type": "array",
          "title": "Lokalplan Forslag"
        },
        "kommuneplanrammer": {
          "items": {
            "$ref": "#/$defs/PlanningPlan"
          },
          "type": "array",
          "title": "Kommuneplanrammer"
        },
        "assessed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assessed At"
        }
      },
      "type": "object",
      "required": [
        "version"
      ],
      "title": "PropertyPlanningResponse",
      "description": "Planning status at the property's coordinate (Plandata.dk point lookup)."
    },
    "PropertyPreliminaryValuation": {
      "properties": {
        "year": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year",
          "description": "The valuation year"
        },
        "property_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Property Value",
          "description": "Foreløbig ejendomsværdi in DKK (0 for business properties, which get a land value only)"
        },
        "land_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Land Value",
          "description": "Foreløbig grundværdi in DKK"
        },
        "land_value_housing": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Land Value Housing",
          "description": "Land and forestry: grundværdi of the dwelling"
        },
        "production_land_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Production Land Value",
          "description": "Land and forestry: grundværdi of production land"
        },
        "other_land_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Other Land Value",
          "description": "Land and forestry: grundværdi of other land"
        },
        "legal_category_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Category Code"
        },
        "legal_category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Category",
          "description": "Juridisk kategori, e.g. 'Ejerbolig til vurdering i lige år'"
        },
        "legal_subcategory_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Subcategory Code"
        },
        "legal_subcategory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Subcategory"
        },
        "vurderingsejendom_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vurderingsejendom Id"
        },
        "bfe_numbers": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "title": "Bfe Numbers",
          "description": "Every BFE number the valuation covers"
        },
        "release_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Release Date",
          "description": "Date of Vurderingsstyrelsen's data release (YYYY-MM-DD)"
        }
      },
      "type": "object",
      "title": "PropertyPreliminaryValuation",
      "description": "One preliminary valuation (foreløbig vurdering) from Vurderingsstyrelsen's\npublished files: homes 2022 and 2024, business and agricultural land\nvalues 2023 and 2025 (their ejendomsværdi is 0)."
    },
    "PropertyTransactionResponse": {
      "properties": {
        "total_purchase_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Purchase Price"
        },
        "cash_purchase_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cash Purchase Price"
        },
        "purchase_agreement_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Purchase Agreement Date"
        },
        "transfer_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transfer Date"
        },
        "currency_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Currency Code"
        },
        "buildings_included": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Buildings Included"
        }
      },
      "type": "object",
      "title": "PropertyTransactionResponse",
      "description": "Transaction details for API response."
    },
    "PropertyTransferResponse": {
      "properties": {
        "bfe_number": {
          "type": "integer",
          "title": "Bfe Number"
        },
        "takeover_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Takeover Date"
        },
        "registration_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Registration Date"
        },
        "transfer_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transfer Method"
        },
        "conditional": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Conditional"
        },
        "deadline_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deadline Date"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "rolled_back": {
          "type": "boolean",
          "title": "Rolled Back",
          "default": false
        },
        "transaction": {
          "anyOf": [
            {
              "$ref": "#/$defs/PropertyTransactionResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "bundle": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/BundleProperty"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bundle"
        }
      },
      "type": "object",
      "required": [
        "bfe_number",
        "status"
      ],
      "title": "PropertyTransferResponse",
      "description": "Transfer event for API response, with denormalized transaction."
    },
    "PropertyValuation": {
      "properties": {
        "year": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year",
          "description": "The year the valuation applies to"
        },
        "property_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Property Value",
          "description": "Ejendomsværdi in DKK; 0 means the register holds no value for that year"
        },
        "land_value": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Land Value",
          "description": "Grundværdi in DKK"
        },
        "assessed_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assessed Area",
          "description": "Vurderet areal in m²"
        },
        "legal_category_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Category Code"
        },
        "legal_category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Category",
          "description": "Juridisk kategori, e.g. 'Ejerbolig til vurdering i lige år'"
        },
        "legal_subcategory_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Subcategory Code"
        },
        "legal_subcategory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legal Subcategory"
        },
        "usage_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Usage Code",
          "description": "Benyttelseskode"
        },
        "change_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Change Code",
          "description": "Ændringskode (type of valuation or deciding authority)"
        },
        "change_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Change Date",
          "description": "Date of the latest valid valuation"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At",
          "description": "When the valuation was last updated in the register"
        },
        "apartments_included": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Apartments Included",
          "description": "Number of flats valued together with the property"
        },
        "valuation_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valuation Id"
        },
        "vurderingsejendom_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vurderingsejendom Id"
        },
        "moderejendom_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Moderejendom Id"
        }
      },
      "type": "object",
      "title": "PropertyValuation",
      "description": "One public property valuation (offentlig ejendomsvurdering, Datafordeler VUR)."
    },
    "PropertyValuationResponse": {
      "properties": {
        "latest": {
          "anyOf": [
            {
              "$ref": "#/$defs/PropertyValuation"
            },
            {
              "type": "null"
            }
          ],
          "description": "The newest final valuation; null when only preliminary valuations exist"
        },
        "history": {
          "items": {
            "$ref": "#/$defs/PropertyValuation"
          },
          "type": "array",
          "title": "History"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "source": {
          "type": "string",
          "title": "Source",
          "description": "Attribution the data licence requires",
          "default": "Vurderingsstyrelsen (Ejendomsvurdering via Datafordeler, CC BY 4.0)"
        },
        "preliminary": {
          "items": {
            "$ref": "#/$defs/PropertyPreliminaryValuation"
          },
          "type": "array",
          "title": "Preliminary",
          "description": "Current preliminary valuations, newest year first"
        },
        "preliminary_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Preliminary Source",
          "description": "Attribution for the preliminary valuations"
        }
      },
      "type": "object",
      "required": [
        "history",
        "count"
      ],
      "title": "PropertyValuationResponse",
      "description": "Public valuations of a property. Final valuations newest first\n(old-system valuations to 2020, new-system valuations of homes as they\nbecome final) and the current preliminary valuations."
    },
    "UnitInfo": {
      "properties": {
        "usage_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Usage Code"
        },
        "total_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Area"
        },
        "residential_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Residential Area"
        },
        "commercial_area": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Commercial Area"
        },
        "rooms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rooms"
        },
        "dwelling_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dwelling Type"
        },
        "heating_installation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Heating Installation"
        },
        "heating_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Heating Source"
        }
      },
      "type": "object",
      "title": "UnitInfo",
      "description": "Unit (enhed) data from BBR enrichment."
    },
    "app__models__property__GeoLocation": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type",
          "default": "Point"
        },
        "coordinates": {
          "items": {
            "type": "number"
          },
          "type": "array",
          "title": "Coordinates"
        }
      },
      "type": "object",
      "required": [
        "coordinates"
      ],
      "title": "GeoLocation",
      "description": "GeoJSON Point."
    }
  }
}