{
    "openapi": "3.1.0",
    "info": {
        "title": "Valis Spain API",
        "version": "1.1.0",
        "description": "Read-only Spanish new-build catalogue, source availability, weighted asking prices, competitive environment, media and market history. Private enquiries and image-review queues are not exposed."
    },
    "servers": [
        {
            "url": "https://valis.es/api/v1"
        }
    ],
    "paths": {
        "/projects": {
            "get": {
                "summary": "Search new-build projects",
                "parameters": [
                    {
                        "name": "query",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "region_group",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "description": "Geo region slug such as madrid, barcelona, costa-del-sol, costa-blanca, costa-brava, balearic-islands, canary-islands."
                        }
                    },
                    {
                        "name": "municipality",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "locality",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "property_type",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "",
                                "apartment",
                                "house"
                            ]
                        }
                    },
                    {
                        "name": "amenity",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "description": "Comma-separated amenities: gym,pool,parking,spa_sauna. Projects must include all requested amenities."
                        }
                    },
                    {
                        "name": "has_gym",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_pool",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_parking",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_spa_sauna",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "walk_15_category",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "description": "Comma-separated categories within 15 minutes walking: supermarket,cafe,restaurant,gym,park,beach,metro,train,school,hospital. Projects must include all requested categories."
                        }
                    },
                    {
                        "name": "min_walk_15_categories",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "min_walk_15_places",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "has_walk_15_supermarket",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_cafe",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_restaurant",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_gym",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_park",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_beach",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_metro",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_train",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_school",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "has_walk_15_hospital",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "min_price",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_price",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "min_area",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_area",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "completion_year",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_beach_drive_minutes",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_airport_drive_minutes",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_school_drive_minutes",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_school_walk_minutes",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "min_total_units",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "has_available_units",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "available_typology",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "max_available_price",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "min_bedrooms",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "max_bedrooms",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "Values above 50 are clamped for compatibility with existing REST consumers."
                        }
                    },
                    {
                        "name": "locale",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "es",
                                "en",
                                "ru"
                            ]
                        }
                    },
                    {
                        "name": "typology",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated typologies. Available unit constraints must match one unit; catalogue ranges never confirm availability."
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "deprecated": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "description": "Accepted for legacy compatibility and ignored. This endpoint does not implement pagination."
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "deprecated": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "description": "Accepted for legacy compatibility and ignored. This endpoint does not implement pagination."
                    },
                    {
                        "name": "page_size",
                        "in": "query",
                        "deprecated": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "description": "Accepted for legacy compatibility and ignored. This endpoint does not implement pagination."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Search results",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProjectSearchResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "search_new_build_projects"
            }
        },
        "/projects/{slug}": {
            "get": {
                "summary": "Get project details",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/slug"
                    },
                    {
                        "$ref": "#/components/parameters/locale"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Project details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProjectDetail"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "get_new_build_project"
            }
        },
        "/projects/{slug}/available-units": {
            "get": {
                "summary": "Get currently available units for a project",
                "description": "Returns available apartment/unit rows only when Valis has source availability data for the project.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/slug"
                    },
                    {
                        "$ref": "#/components/parameters/locale"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Available units",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AvailableUnitsResponse"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "get_new_build_project_available_units"
            }
        },
        "/projects/{slug}/media": {
            "get": {
                "summary": "Get project media assets",
                "description": "Returns project images/photos and floorplan links when Valis has source media for the project.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/slug"
                    },
                    {
                        "$ref": "#/components/parameters/locale"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Project media",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProjectMediaResponse"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "get_new_build_project_media"
            }
        },
        "/locations": {
            "get": {
                "summary": "List municipalities",
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "Values above 500 are clamped for compatibility with existing REST consumers."
                        }
                    },
                    {
                        "name": "locale",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "es",
                                "en",
                                "ru"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Municipality list",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LocationsResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "list_new_build_locations"
            }
        },
        "/facets": {
            "get": {
                "summary": "List filter facets and data ranges",
                "parameters": [
                    {
                        "name": "locale",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "es",
                                "en",
                                "ru"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Filter metadata",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/FacetsResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "get_new_build_facets"
            }
        },
        "/market": {
            "get": {
                "summary": "Get sale €/m² market analytics by geo location",
                "description": "Returns Idealista Spain sale housing €/m² analytics for Valis geo levels: country, region, district, municipality, and locality. Includes monthly history for the last 10 years by default, 12/24 month growth, 5-year CAGR, and 12/24 month forecast prices.",
                "parameters": [
                    {
                        "name": "query",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "description": "Optional Spanish location name, e.g. Madrid, Barcelona, Marbella."
                        }
                    },
                    {
                        "name": "location",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "description": "Alias for query."
                        }
                    },
                    {
                        "name": "id",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "description": "Opaque Spanish market geography id, as returned by the API."
                        }
                    },
                    {
                        "name": "level",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "country",
                                "region",
                                "province",
                                "district",
                                "municipality",
                                "locality",
                                "city",
                                "municipio",
                                "comunidad",
                                "provincia",
                                "isla",
                                "barrio"
                            ]
                        }
                    },
                    {
                        "name": "months",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 120,
                            "description": "History length in months; default and maximum are 120."
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "Values above 1000 are clamped for compatibility with existing REST consumers."
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Market analytics",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MarketAnalyticsResponse"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "get_market_price_analytics"
            }
        },
        "/openapi.json": {
            "get": {
                "summary": "OpenAPI schema",
                "responses": {
                    "200": {
                        "description": "OpenAPI 3.1 schema",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Method not allowed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "operationId": "get_openapi_schema"
            }
        },
        "/search/suggestions": {
            "get": {
                "operationId": "get_search_suggestions",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "locale",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "es",
                                "en",
                                "ru"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Project and location suggestions",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/market/geographies": {
            "get": {
                "operationId": "list_market_geographies",
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 1000
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Spanish geographies with dated asking-price history"
                    }
                }
            }
        },
        "/market/geographies/{geo_id}": {
            "get": {
                "operationId": "get_market_geography",
                "parameters": [
                    {
                        "name": "geo_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "History, comparisons and forecasts for a Spanish geography"
                    }
                }
            }
        },
        "/projects/{slug}/competition": {
            "get": {
                "operationId": "get_new_build_project_competition",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "locale",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "es",
                                "en",
                                "ru"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Competitive environment",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CompetitionResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/search": {
            "get": {
                "operationId": "smart_search_new_build_projects",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "locale",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "es",
                                "en",
                                "ru"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Exact matches or explicitly labelled alternatives",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SmartSearchResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/sources": {
            "get": {
                "operationId": "list_catalogue_sources",
                "responses": {
                    "200": {
                        "description": "Enabled public source registry",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SourcesResponse"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "parameters": {
            "slug": {
                "name": "slug",
                "in": "path",
                "required": true,
                "schema": {
                    "type": "string"
                },
                "example": "360-by-cordia"
            },
            "region_group": {
                "name": "region_group",
                "in": "query",
                "schema": {
                    "type": "string"
                },
                "example": "costa-del-sol"
            },
            "municipality": {
                "name": "municipality",
                "in": "query",
                "schema": {
                    "type": "string"
                },
                "example": "Madrid"
            },
            "locality": {
                "name": "locality",
                "in": "query",
                "schema": {
                    "type": "string"
                }
            },
            "typology": {
                "name": "typology",
                "in": "query",
                "schema": {
                    "type": "string"
                },
                "example": "2 hab."
            },
            "property_type": {
                "name": "property_type",
                "in": "query",
                "schema": {
                    "type": "string",
                    "enum": [
                        "apartment",
                        "townhouse",
                        "house"
                    ]
                }
            },
            "amenity": {
                "name": "amenity",
                "in": "query",
                "description": "Comma-separated amenities. Values: gym, pool, parking, spa_sauna. Projects must include all requested amenities.",
                "schema": {
                    "type": "string"
                }
            },
            "has_gym": {
                "name": "has_gym",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "has_pool": {
                "name": "has_pool",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "has_parking": {
                "name": "has_parking",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "has_spa_sauna": {
                "name": "has_spa_sauna",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "walk_15_category": {
                "name": "walk_15_category",
                "in": "query",
                "description": "Comma-separated 15-minute walking infrastructure categories. Values: supermarket, cafe, restaurant, gym, park, beach, metro, train, school, hospital. Projects must include all requested categories.",
                "schema": {
                    "type": "string"
                }
            },
            "min_walk_15_categories": {
                "name": "min_walk_15_categories",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "min_walk_15_places": {
                "name": "min_walk_15_places",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "has_walk_15_supermarket": {
                "name": "has_walk_15_supermarket",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "has_walk_15_park": {
                "name": "has_walk_15_park",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "has_walk_15_metro": {
                "name": "has_walk_15_metro",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "min_price": {
                "name": "min_price",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "max_price": {
                "name": "max_price",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "min_area": {
                "name": "min_area",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "max_area": {
                "name": "max_area",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "completion_year": {
                "name": "completion_year",
                "in": "query",
                "schema": {
                    "type": "integer"
                }
            },
            "max_beach_drive_minutes": {
                "name": "max_beach_drive_minutes",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "max_airport_drive_minutes": {
                "name": "max_airport_drive_minutes",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "max_school_drive_minutes": {
                "name": "max_school_drive_minutes",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "max_school_walk_minutes": {
                "name": "max_school_walk_minutes",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "min_total_units": {
                "name": "min_total_units",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "has_available_units": {
                "name": "has_available_units",
                "in": "query",
                "schema": {
                    "type": "boolean"
                }
            },
            "available_typology": {
                "name": "available_typology",
                "in": "query",
                "schema": {
                    "type": "string"
                },
                "example": "2 hab."
            },
            "max_available_price": {
                "name": "max_available_price",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "min_bedrooms": {
                "name": "min_bedrooms",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "max_bedrooms": {
                "name": "max_bedrooms",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 0
                }
            },
            "locale": {
                "name": "locale",
                "in": "query",
                "schema": {
                    "type": "string",
                    "enum": [
                        "es",
                        "en",
                        "ru"
                    ],
                    "default": "es"
                }
            },
            "limit": {
                "name": "limit",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "default": 10
                }
            },
            "market_query": {
                "name": "query",
                "in": "query",
                "schema": {
                    "type": "string"
                },
                "example": "Madrid"
            },
            "market_level": {
                "name": "level",
                "in": "query",
                "schema": {
                    "type": "string",
                    "enum": [
                        "country",
                        "region",
                        "district",
                        "municipality",
                        "locality"
                    ]
                }
            },
            "market_months": {
                "name": "months",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 120,
                    "default": 120
                }
            },
            "market_limit": {
                "name": "limit",
                "in": "query",
                "schema": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000,
                    "default": 100
                }
            }
        },
        "schemas": {
            "ProjectSearchResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProjectSummary"
                        }
                    }
                }
            },
            "LocationsResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Location"
                        }
                    }
                }
            },
            "Location": {
                "type": "object",
                "properties": {
                    "municipality": {
                        "type": "string"
                    },
                    "projects_count": {
                        "type": "integer"
                    }
                }
            },
            "FacetsResponse": {
                "type": "object",
                "properties": {
                    "projects_count": {
                        "type": "integer"
                    },
                    "municipalities": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Location"
                        }
                    },
                    "typologies": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "property_types": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "amenities": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "gym",
                                "pool",
                                "parking",
                                "spa_sauna"
                            ]
                        }
                    },
                    "amenity_counts": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "amenity": {
                                    "type": "string"
                                },
                                "projects_count": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "walking_access_15_projects_count": {
                        "type": "integer"
                    },
                    "walking_access_15_categories": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "category": {
                                    "type": "string"
                                },
                                "projects_count": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "walking_access_15_places_max": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "completion_years": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "price_min": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "price_max": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "price_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "price_m2_samples": {
                        "type": "integer"
                    },
                    "area_min": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "area_max": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "school_drive_minutes_min": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "school_drive_minutes_max": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "available_projects_count": {
                        "type": "integer"
                    },
                    "available_typologies": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "available_price_min": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "available_price_max": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "available_area_min": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "available_area_max": {
                        "type": [
                            "number",
                            "null"
                        ]
                    }
                }
            },
            "AvailableUnitsSummary": {
                "type": "object",
                "properties": {
                    "has_available_units": {
                        "type": "boolean"
                    },
                    "available_units_count": {
                        "type": "integer"
                    },
                    "available_typologies": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "available_price_min": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "available_price_max": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "available_area_min": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "available_area_max": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "floorplan_count": {
                        "type": "integer"
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "availability_status": {
                        "enum": [
                            "available",
                            "sold_out",
                            "unknown"
                        ]
                    }
                }
            },
            "MarketForecast": {
                "type": [
                    "object",
                    "null"
                ],
                "properties": {
                    "project_price_eur_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "forecast_price_12m_eur_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "forecast_price_24m_eur_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "forecast_growth_12m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_growth_24m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_rate_basis": {
                        "type": "string"
                    },
                    "location": {
                        "type": "object"
                    }
                }
            },
            "MarketAnalyticsResponse": {
                "type": "object",
                "properties": {
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "generated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "history_months": {
                        "type": "integer"
                    },
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MarketLocationAnalytics"
                        }
                    }
                }
            },
            "MarketLocationAnalytics": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "path": {
                        "type": "string"
                    },
                    "level": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "parent_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "latest_month": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "latest_price_eur_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "growth_12m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "growth_24m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "cagr_5y_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_growth_12m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_growth_24m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_price_12m_eur_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "forecast_price_24m_eur_m2": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "history": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "month": {
                                    "type": "string"
                                },
                                "price_eur_m2": {
                                    "type": "integer"
                                }
                            }
                        }
                    }
                }
            },
            "AvailableUnit": {
                "type": "object",
                "properties": {
                    "source": {
                        "type": "string"
                    },
                    "unit_number": {
                        "type": "string"
                    },
                    "lot_number": {
                        "type": "string"
                    },
                    "building_name": {
                        "type": "string"
                    },
                    "level_text": {
                        "type": "string"
                    },
                    "typology": {
                        "type": "string"
                    },
                    "bedrooms": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "bathrooms": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "parking_spaces": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "internal_area": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "external_area": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "price": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "currency": {
                        "type": "string"
                    },
                    "floorplan_url": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string"
                    }
                }
            },
            "AvailableUnitsResponse": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "price_m2": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "price_m2_samples": {
                        "type": "integer",
                        "description": "Number of current inventory samples used by the calculation."
                    },
                    "price_m2_calculated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "price_per_sqm": {
                        "$ref": "#/components/schemas/ValisPricePerSquareMetre"
                    },
                    "available_units_summary": {
                        "$ref": "#/components/schemas/AvailableUnitsSummary"
                    },
                    "available_units": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AvailableUnit"
                        }
                    },
                    "note": {
                        "type": "string"
                    },
                    "data_freshness": {
                        "$ref": "#/components/schemas/DataFreshness"
                    }
                }
            },
            "AmenitiesFlags": {
                "type": "object",
                "properties": {
                    "gym": {
                        "type": "boolean"
                    },
                    "pool": {
                        "type": "boolean"
                    },
                    "parking": {
                        "type": "boolean"
                    },
                    "spa_sauna": {
                        "type": "boolean"
                    }
                }
            },
            "ProjectSummary": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "municipality": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "locality": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "latitude": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "longitude": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "developer_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "typologies": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "property_types": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "amenities": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "gym",
                                "pool",
                                "parking",
                                "spa_sauna"
                            ]
                        }
                    },
                    "amenities_flags": {
                        "$ref": "#/components/schemas/AmenitiesFlags"
                    },
                    "price_min": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Whole-project catalogue range, potentially historical. Never present as a filtered typology price; use matched_inventory."
                    },
                    "price_max": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Whole-project catalogue range, potentially historical. Never present as a filtered typology price; use matched_inventory."
                    },
                    "price_m2": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "price_m2_samples": {
                        "type": "integer",
                        "description": "Number of current inventory samples used by the price-per-m2 calculation."
                    },
                    "price_m2_calculated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "price_per_sqm": {
                        "$ref": "#/components/schemas/ValisPricePerSquareMetre"
                    },
                    "area_min": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "area_max": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "completion_year": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "floors_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_units_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "beach_drive_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "beach_walk_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "airport_drive_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "metro_walk_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "school_drive_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "school_walk_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "nearest_beach_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "nearest_airport_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "nearest_metro_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hero_image_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uri"
                    },
                    "image_count": {
                        "type": "integer"
                    },
                    "floorplan_count": {
                        "type": "integer"
                    },
                    "walking_access_15_summary": {
                        "$ref": "#/components/schemas/WalkingAccess15Summary"
                    },
                    "available_units_summary": {
                        "$ref": "#/components/schemas/AvailableUnitsSummary"
                    },
                    "market_forecast": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ProjectMarketForecast"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "answer_text": {
                        "type": "string"
                    },
                    "price_scope": {
                        "const": "whole_project_catalogue_not_requested_typology"
                    },
                    "matched_inventory": {
                        "$ref": "#/components/schemas/MatchedInventory"
                    },
                    "data_freshness": {
                        "$ref": "#/components/schemas/DataFreshness"
                    },
                    "official_website_url": {
                        "type": "string"
                    },
                    "published_at": {
                        "type": "string"
                    },
                    "sources": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SourceProvenance"
                        }
                    },
                    "inventory_provenance": {
                        "$ref": "#/components/schemas/InventoryProvenance"
                    },
                    "market_statistics": {
                        "type": [
                            "object",
                            "null"
                        ]
                    },
                    "competition_summary": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CompetitiveEnvironment"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "price_m2_basis": {
                        "type": "string"
                    }
                }
            },
            "ProjectPricePerSqm": {
                "type": "object",
                "description": "Current, non-static project asking price per square metre. It is calculated from inventory currently marketed for sale and refreshed after imports, rather than averaged across every unit in the development.",
                "properties": {
                    "value": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "currency": {
                        "type": "string",
                        "const": "EUR"
                    },
                    "unit": {
                        "type": "string",
                        "const": "m2"
                    },
                    "sample_size": {
                        "type": "integer"
                    },
                    "calculated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "is_dynamic": {
                        "type": "boolean",
                        "const": true
                    },
                    "basis": {
                        "type": "string",
                        "const": "currently_available_inventory"
                    },
                    "description": {
                        "type": "string"
                    }
                }
            },
            "ProjectDetail": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/ProjectSummary"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "nearest_beach_latitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "nearest_beach_longitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "nearest_airport_latitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "nearest_airport_longitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "nearest_metro_latitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "nearest_metro_longitude": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "typology_breakdown": {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            },
                            "images": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/ProjectImage"
                                }
                            },
                            "floorplans": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/ProjectFloorplan"
                                }
                            },
                            "walking_access_15": {
                                "anyOf": [
                                    {
                                        "$ref": "#/components/schemas/WalkingAccess15"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            },
                            "available_units": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AvailableUnit"
                                }
                            }
                        }
                    }
                ],
                "properties": {
                    "competitive_environment": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CompetitiveEnvironment"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PublicDocument"
                        }
                    },
                    "construction_progress": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ConstructionAsset"
                        }
                    },
                    "sources": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SourceProvenance"
                        }
                    },
                    "inventory_provenance": {
                        "$ref": "#/components/schemas/InventoryProvenance"
                    },
                    "competition_summary": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CompetitiveEnvironment"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "market_forecast": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ProjectMarketForecast"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "price_m2": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "price_per_sqm": {
                        "$ref": "#/components/schemas/ValisPricePerSquareMetre"
                    }
                }
            },
            "WalkingAccess15Category": {
                "type": "object",
                "properties": {
                    "category": {
                        "type": "string",
                        "enum": [
                            "supermarket",
                            "cafe",
                            "restaurant",
                            "gym",
                            "park",
                            "beach",
                            "metro",
                            "train",
                            "school",
                            "hospital"
                        ]
                    },
                    "label": {
                        "type": "string"
                    },
                    "count": {
                        "type": "integer"
                    }
                }
            },
            "WalkingAccess15Item": {
                "type": "object",
                "properties": {
                    "category": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "minutes": {
                        "type": "integer"
                    },
                    "distance_km": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "latitude": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "longitude": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "osm_url": {
                        "type": "string"
                    }
                }
            },
            "WalkingAccess15Summary": {
                "type": "object",
                "properties": {
                    "has_data": {
                        "type": "boolean"
                    },
                    "limit_minutes": {
                        "type": "integer"
                    },
                    "categories_count": {
                        "type": "integer"
                    },
                    "total_places": {
                        "type": "integer"
                    },
                    "categories": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/WalkingAccess15Category"
                        }
                    },
                    "category_counts": {
                        "type": "object"
                    },
                    "nearest_minutes_by_category": {
                        "type": "object"
                    }
                }
            },
            "WalkingAccess15": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/WalkingAccess15Summary"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "source": {
                                "type": "object"
                            },
                            "items": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/WalkingAccess15Item"
                                }
                            }
                        }
                    }
                ]
            },
            "ProjectImage": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string",
                        "enum": [
                            "hero",
                            "official_gallery",
                            "media"
                        ]
                    }
                }
            },
            "ProjectFloorplan": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string",
                        "enum": [
                            "official_plan",
                            "media",
                            "available_unit"
                        ]
                    },
                    "typology": {
                        "type": "string"
                    },
                    "unit_number": {
                        "type": "string"
                    },
                    "lot_number": {
                        "type": "string"
                    },
                    "building_name": {
                        "type": "string"
                    }
                }
            },
            "ProjectMediaResponse": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "hero_image_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image_count": {
                        "type": "integer"
                    },
                    "floorplan_count": {
                        "type": "integer"
                    },
                    "images": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProjectImage"
                        }
                    },
                    "floorplans": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProjectFloorplan"
                        }
                    },
                    "note": {
                        "type": "string"
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PublicDocument"
                        }
                    },
                    "construction_progress": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ConstructionAsset"
                        }
                    }
                }
            },
            "Error": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "string"
                    }
                }
            },
            "MatchedInventory": {
                "type": "object",
                "required": [
                    "basis",
                    "count",
                    "typologies",
                    "price_min",
                    "price_max",
                    "updated_at"
                ],
                "properties": {
                    "basis": {
                        "type": "string",
                        "enum": [
                            "available_snapshot",
                            "historical_unverified",
                            "unknown"
                        ]
                    },
                    "count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "count_kind": {
                        "type": "string",
                        "enum": [
                            "units",
                            "catalogue_ranges"
                        ]
                    },
                    "typologies": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "price_min": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "price_max": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "area_min": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "area_max": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "currency": {
                        "const": "EUR"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "unit_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "DataFreshness": {
                "type": "object",
                "required": [
                    "status",
                    "is_live"
                ],
                "properties": {
                    "availability_updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "age_days": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "status": {
                        "enum": [
                            "recent",
                            "stale",
                            "unknown"
                        ]
                    },
                    "stale_after_days": {
                        "const": 30
                    },
                    "is_live": {
                        "const": false
                    }
                }
            },
            "CompetitionResponse": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "competitive_environment": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CompetitiveEnvironment"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "data_freshness": {
                        "type": "object"
                    }
                },
                "required": [
                    "slug",
                    "competitive_environment"
                ]
            },
            "SmartSearchResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "mode": {
                        "type": "string"
                    },
                    "parsed": {
                        "type": "object"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProjectSummary"
                        }
                    }
                },
                "required": [
                    "count",
                    "items"
                ]
            },
            "SourcesResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                },
                "required": [
                    "count",
                    "items"
                ]
            },
            "ValisPricePerSquareMetre": {
                "type": "object",
                "properties": {
                    "value": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "currency": {
                        "const": "EUR"
                    },
                    "unit": {
                        "const": "m2"
                    },
                    "sample_size": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "calculated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_dynamic": {
                        "type": "boolean"
                    },
                    "basis": {
                        "enum": [
                            "currently_available_inventory",
                            "catalogue_range_estimate",
                            "unknown"
                        ]
                    },
                    "description": {
                        "type": "string"
                    },
                    "is_live": {
                        "const": false
                    }
                },
                "required": [
                    "value",
                    "sample_size",
                    "basis",
                    "is_dynamic",
                    "is_live"
                ]
            },
            "SourceProvenance": {
                "type": "object",
                "properties": {
                    "source": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "available_units_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "source",
                    "name",
                    "available_units_count"
                ]
            },
            "InventoryProvenance": {
                "type": "object",
                "properties": {
                    "policy": {
                        "type": "string",
                        "const": "single_source_snapshot"
                    },
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "source_project_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reported_available_units": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "exported_units": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "is_live": {
                        "type": "boolean",
                        "const": false
                    }
                },
                "required": [
                    "policy",
                    "source",
                    "exported_units",
                    "is_live"
                ]
            },
            "CompetitionNeighbour": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "distance_km": {
                        "type": "number",
                        "minimum": 0
                    },
                    "price_eur_m2": {
                        "type": "number",
                        "exclusiveMinimum": 0
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "url",
                    "distance_km",
                    "price_eur_m2"
                ]
            },
            "CompetitiveEnvironment": {
                "type": "object",
                "properties": {
                    "project_price_eur_m2": {
                        "type": "number",
                        "exclusiveMinimum": 0
                    },
                    "neighbours_median_eur_m2": {
                        "type": "number",
                        "exclusiveMinimum": 0
                    },
                    "difference_pct": {
                        "type": "number"
                    },
                    "neighbours_count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                    },
                    "method": {
                        "type": "string"
                    },
                    "neighbours": {
                        "type": "array",
                        "maxItems": 10,
                        "items": {
                            "$ref": "#/components/schemas/CompetitionNeighbour"
                        }
                    }
                },
                "required": [
                    "project_price_eur_m2",
                    "neighbours_median_eur_m2",
                    "difference_pct",
                    "neighbours_count",
                    "method"
                ]
            },
            "PublicDocument": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri-reference"
                    },
                    "title": {
                        "type": "string"
                    }
                },
                "required": [
                    "url",
                    "title"
                ]
            },
            "ConstructionAsset": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri-reference"
                    },
                    "title": {
                        "type": "string"
                    },
                    "captured_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Actual capture date; never the import date."
                    },
                    "media_type": {
                        "type": "string"
                    }
                },
                "required": [
                    "url",
                    "title",
                    "captured_at",
                    "media_type"
                ]
            },
            "ProjectMarketForecast": {
                "type": "object",
                "properties": {
                    "location": {
                        "type": "object",
                        "properties": {
                            "geo_id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "level": {
                                "type": "string"
                            },
                            "url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    },
                    "project_price_eur_m2": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_growth_12m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_growth_24m_pct": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_price_12m_eur_m2": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_price_24m_eur_m2": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "forecast_rate_basis": {
                        "type": "string"
                    },
                    "is_estimate": {
                        "type": "boolean",
                        "const": true
                    }
                }
            }
        }
    }
}