{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-structure/devportal-api-rating-structure.json",
  "name": "Rating",
  "description": "Rating schema from WSO2 API Manager",
  "required": [
    "rating"
  ],
  "type": "object",
  "properties": {
    "ratingId": {
      "type": "string",
      "readOnly": true,
      "example": "32acfa7a-77f8-4fe0-bb7f-a902f36546d0"
    },
    "apiId": {
      "type": "string",
      "readOnly": true,
      "example": "e93fb282-b456-48fc-8981-003fb89086ae"
    },
    "ratedBy": {
      "maxLength": 50,
      "type": "string",
      "readOnly": true,
      "example": "admin"
    },
    "rating": {
      "type": "int32",
      "example": 4
    }
  }
}