{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/university-of-waterloo/json-schema/university-of-waterloo-food-services-franchise-schema.json",
  "title": "FoodServicesFranchise",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/university-of-waterloo-foodservices-api-openapi.yml#/components/schemas/FoodServicesFranchise",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "self": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "logo": {
      "$ref": "#/$defs/Logo"
    },
    "combos": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Combo"
      }
    },
    "individualitems": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/IndividualItem"
      }
    },
    "addons": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Addon"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Addon": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "photo": {},
        "price": {
          "type": [
            "string",
            "null"
          ]
        },
        "calories": {}
      },
      "additionalProperties": false
    },
    "Combo": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "image": {
          "$ref": "#/$defs/ComboImage"
        },
        "options": {
          "type": [
            "string",
            "null"
          ]
        },
        "item": {
          "type": [
            "string",
            "null"
          ]
        },
        "price": {
          "type": [
            "string",
            "null"
          ]
        },
        "calories": {}
      },
      "additionalProperties": false
    },
    "ComboImage": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "filemime": {
          "type": [
            "string",
            "null"
          ]
        },
        "filesize": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "type": [
            "string",
            "null"
          ]
        },
        "height": {
          "type": [
            "string",
            "null"
          ]
        },
        "alt": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "IndividualItem": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "photo": {
          "$ref": "#/$defs/IndividualItemPhoto"
        },
        "price": {
          "type": [
            "string",
            "null"
          ]
        },
        "calories": {}
      },
      "additionalProperties": false
    },
    "IndividualItemPhoto": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "filemime": {
          "type": [
            "string",
            "null"
          ]
        },
        "filesize": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "type": [
            "string",
            "null"
          ]
        },
        "height": {
          "type": [
            "string",
            "null"
          ]
        },
        "alt": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Logo": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "filemime": {
          "type": [
            "string",
            "null"
          ]
        },
        "filesize": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "type": [
            "string",
            "null"
          ]
        },
        "height": {
          "type": [
            "string",
            "null"
          ]
        },
        "alt": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}