{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roledawn-com/json-schema/roledawn-com-app-schema.json",
  "title": "App",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roledawn-com-jobs-openapi.json#/components/schemas/App",
  "type": "object",
  "required": [
    "store",
    "id",
    "country",
    "title",
    "url",
    "fetched_at"
  ],
  "properties": {
    "store": {
      "type": "string",
      "enum": [
        "apple",
        "google"
      ]
    },
    "id": {
      "type": "string",
      "description": "App Store ID or Android package name"
    },
    "country": {
      "type": "string"
    },
    "lang": {
      "type": [
        "string",
        "null"
      ],
      "description": "Google Play language used (null for the App Store)"
    },
    "title": {
      "type": "string"
    },
    "developer": {
      "type": [
        "string",
        "null"
      ],
      "description": "Developer / seller name"
    },
    "developer_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Store developer ID"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Public store page"
    },
    "icon": {
      "type": [
        "string",
        "null"
      ],
      "description": "Icon URL"
    },
    "genre": {
      "type": [
        "string",
        "null"
      ],
      "description": "Primary category"
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "Price in currency (0 = free)"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO 4217 currency code"
    },
    "free": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "true when the price is 0"
    },
    "rating": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average star rating, 2 decimals"
    },
    "ratings_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of ratings"
    },
    "reviews_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of written reviews (Google Play only)"
    },
    "histogram": {
      "type": [
        "object",
        "null"
      ],
      "description": "Number of ratings per star (1-5). App Store: from the app page of that country. Google Play: all ratings.",
      "properties": {
        "1": {
          "type": "integer"
        },
        "2": {
          "type": "integer"
        },
        "3": {
          "type": "integer"
        },
        "4": {
          "type": "integer"
        },
        "5": {
          "type": "integer"
        }
      }
    },
    "rating_current_version": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average rating of the current version (App Store only)"
    },
    "ratings_count_current_version": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Ratings of the current version (App Store only)"
    },
    "installs": {
      "type": [
        "string",
        "null"
      ],
      "description": "Install bracket as shown, e.g. 1,000,000,000+ (Google Play only)"
    },
    "min_installs": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Lower bound of the install bracket (Google Play only)"
    },
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "Current version (App Store; Google Play when the page shows one)"
    },
    "release_notes": {
      "type": [
        "string",
        "null"
      ],
      "description": "What's new in the latest release, plain text"
    },
    "released_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "First release date, ISO 8601 UTC",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Latest update, ISO 8601 UTC",
      "format": "date-time"
    },
    "content_rating": {
      "type": [
        "string",
        "null"
      ],
      "description": "Age rating, e.g. 12+ or Teen"
    },
    "min_os_version": {
      "type": [
        "string",
        "null"
      ],
      "description": "Minimum iOS version (App Store only)"
    },
    "size_bytes": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Download size (App Store only)"
    },
    "contains_ads": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Contains ads (Google Play only)"
    },
    "in_app_purchases": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Offers in-app purchases (Google Play only)"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Store description, plain text"
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the store was read"
    }
  }
}