{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "v": {
      "type": "number",
      "const": 1
    },
    "review": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 10,
          "maxLength": 2000,
          "description": "The review, word for word. Never rewritten or invented."
        },
        "author": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60,
          "description": "Reviewer name as shown on the platform."
        },
        "rating": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        }
      },
      "required": [
        "text",
        "author",
        "rating"
      ],
      "additionalProperties": false
    },
    "business": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "source": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string",
          "const": "google"
        },
        "url": {
          "description": "Link to the original review, if known.",
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "platform"
      ],
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "const": "9:16"
        },
        "theme": {
          "type": "string",
          "enum": [
            "light",
            "dark"
          ]
        }
      },
      "required": [
        "format",
        "theme"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "v",
    "review",
    "business",
    "source",
    "output"
  ],
  "additionalProperties": false
}