{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roledawn-com/json-schema/roledawn-com-app-reviews-response-schema.json",
  "title": "AppReviewsResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roledawn-com-jobs-openapi.json#/components/schemas/AppReviewsResponse",
  "type": "object",
  "required": [
    "store",
    "id",
    "country",
    "app_title",
    "fetched_at",
    "total",
    "count",
    "limit",
    "offset",
    "next_offset",
    "reviews"
  ],
  "properties": {
    "store": {
      "type": "string",
      "enum": [
        "apple",
        "google"
      ]
    },
    "id": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "lang": {
      "type": [
        "string",
        "null"
      ]
    },
    "app_title": {
      "type": "string"
    },
    "app_url": {
      "type": "string",
      "format": "uri"
    },
    "rating": {
      "type": [
        "number",
        "null"
      ]
    },
    "ratings_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time"
    },
    "total": {
      "type": "integer",
      "description": "Reviews matching the filters"
    },
    "count": {
      "type": "integer",
      "description": "Reviews in this page"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "next_offset": {
      "type": [
        "integer",
        "null"
      ],
      "description": "offset of the next page, null on the last page"
    },
    "reviews": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Review"
      }
    }
  },
  "$defs": {
    "Review": {
      "type": "object",
      "required": [
        "id",
        "rating",
        "text"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Review ID in the store"
        },
        "rating": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Review title (App Store only)"
        },
        "text": {
          "type": "string"
        },
        "date": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the review was written, ISO 8601 UTC",
          "format": "date-time"
        },
        "app_version": {
          "type": [
            "string",
            "null"
          ],
          "description": "App version the review was written for (Google Play)"
        },
        "thumbs_up": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Helpful votes (Google Play)"
        },
        "developer_reply": {
          "type": [
            "string",
            "null"
          ],
          "description": "The developer's public reply (Google Play)"
        },
        "developer_reply_date": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the developer replied",
          "format": "date-time"
        }
      }
    }
  }
}