{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paytronix/json-schema/paytronix-restaurant-search-results-schema.json",
  "title": "RestaurantSearchResults",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paytronix-search-api-openapi.yml#/components/schemas/RestaurantSearchResults",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Restaurant"
      }
    },
    "facets": {
      "$ref": "#/$defs/Facets"
    }
  },
  "$defs": {
    "Coordinates": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "format": "double"
        },
        "lon": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "Facets": {
      "type": "object",
      "description": "Applicable search facets such as tags for refining a search.",
      "additionalProperties": true
    },
    "Restaurant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "distance": {
          "type": "number"
        },
        "coordinates": {
          "$ref": "#/$defs/Coordinates"
        },
        "address": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "organizationId": {
          "type": "string"
        },
        "imageUrl": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    }
  }
}