{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chaletiste-fr/json-schema/chaletiste-fr-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chaletiste-fr-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "query": {
      "type": "object"
    },
    "sort": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    },
    "explanation": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductSummary"
      }
    },
    "data_updated": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "attribution": {
      "type": "string"
    }
  },
  "$defs": {
    "ProductSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "brand": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "price_eur": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "price_per_m2_eur": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "surface_m2": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "wall_thickness_mm": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "assembly_hours": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "assembly_estimated": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "delivery_days_max": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "permit": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "retailer": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "price_date": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "api_url": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "md_url": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "photo": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        }
      }
    }
  }
}