{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hortosapp-com/json-schema/hortosapp-com-search-result-schema.json",
  "title": "SearchResult",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hortosapp-com-openapi.json#/components/schemas/SearchResult",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "prices": {
      "type": "string",
      "description": "How prices are quoted, e.g. ex GST"
    },
    "search_url": {
      "type": "string",
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "plant": {
            "type": "string"
          },
          "common_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "growers": {
            "type": "integer",
            "description": "Growers listing the plant right now"
          },
          "price_from_ex_tax": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_to_ex_tax": {
            "type": [
              "number",
              "null"
            ]
          },
          "sizes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}