Toast · Schema

Image

Information about an image.

Food ServicePoint of SaleRestaurantsHospitality

Properties

Name Type Description
width integer The width of the image, in pixels.
height integer The height of the image, in pixels.
url string
heightWidthRatio number The ratio of height to width
View JSON Schema on GitHub

JSON Schema

restaurants-image-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/toast/refs/heads/main/json-schema/restaurants-image-schema.json",
  "title": "Image",
  "description": "Information about an image.",
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "format": "int32",
      "description": "The width of the image, in pixels."
    },
    "height": {
      "type": "integer",
      "format": "int32",
      "description": "The height of the image, in pixels."
    },
    "url": {
      "type": "string"
    },
    "heightWidthRatio": {
      "type": "number",
      "format": "float",
      "description": "The ratio of height to width"
    }
  }
}