{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-places/refs/heads/main/json-schema/review-schema.json",
  "title": "Review",
  "description": "A user review of a place.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The resource name of the review.",
      "example": "places/ChIJN1t_tDeuEmsRUsoyG83frY4"
    },
    "rating": {
      "type": "number",
      "description": "The star rating given in this review, from 1.0 to 5.0.",
      "minimum": 1,
      "maximum": 5,
      "example": 4.5
    },
    "text": {
      "$ref": "#/components/schemas/LocalizedText"
    },
    "originalText": {
      "$ref": "#/components/schemas/LocalizedText"
    },
    "relativePublishTimeDescription": {
      "type": "string",
      "description": "A human-readable, relative description of when the review was published.",
      "example": "Monday: 9:00 AM - 5:00 PM"
    },
    "publishTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which the review was published.",
      "example": "2026-03-15T14:30:00Z"
    },
    "authorAttribution": {
      "$ref": "#/components/schemas/AuthorAttribution"
    }
  }
}