{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/storelift-net/json-schema/storelift-net-listing-extras-schema.json",
  "title": "ListingExtras",
  "description": "Listing extras measured for one App Store storefront, with their own `measuredAt`. A field that was not measured is null; an empty list was measured and holds nothing.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/storelift-net-openapi.yml#/components/schemas/ListingExtras",
  "type": "object",
  "required": [
    "measuredAt",
    "localeCount",
    "locales",
    "ratingHistogram"
  ],
  "properties": {
    "measuredAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "localeCount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "How many languages the app supports."
    },
    "locales": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 100,
      "items": {
        "type": "string"
      },
      "description": "BCP-47 tags in the app's own order; the first is its primary language."
    },
    "ratingHistogram": {
      "type": [
        "array",
        "null"
      ],
      "minItems": 5,
      "maxItems": 5,
      "items": {
        "type": "integer",
        "minimum": 0
      },
      "description": "Rating counts from 1★ to 5★."
    },
    "upcomingEvents": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 10,
      "description": "Live (`happening`) and scheduled (`available`) in-app events, soonest first.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "badge",
          "startsAt",
          "endsAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "enum": [
              "specialEvent",
              "newSeason",
              "majorUpdate",
              "liveEvent",
              "challenge",
              "competition",
              "premiere",
              null
            ]
          },
          "badge": {
            "enum": [
              "happening",
              "available",
              null
            ]
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "endsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      }
    },
    "promoText": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 170
    },
    "featuredIaps": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 10,
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "kind"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "enum": [
              "subscription",
              "purchase"
            ]
          }
        }
      }
    },
    "locked": {
      "type": "object",
      "description": "Only on your own apps' Free answers, never on Hive: how many of the held-back items there are. The held-back fields are left out.",
      "properties": {
        "upcomingEvents": {
          "type": "integer"
        },
        "featuredIaps": {
          "type": "integer"
        },
        "promoText": {
          "const": true
        }
      }
    }
  }
}