{
  "$id": "https://schema.nfh.global/Rating/v2.0",
  "x-iri": "https://schema.nfh.global/Rating/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Schema definition for Rating in the Beckn Protocol",
  "title": "Rating",
  "type": "object",
  "properties": {
    "@type": {
      "type": "string",
      "enum": [
        "beckn:Rating"
      ],
      "description": "Type of the rating",
      "example": "beckn:Rating"
    },
    "beckn:ratingValue": {
      "type": "number",
      "minimum": 0,
      "maximum": 5,
      "description": "Rating value (0-5)",
      "example": 4.8
    },
    "beckn:ratingCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Number of ratings",
      "example": 1250
    }
  },
  "required": [
    "@type"
  ]
}
