{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trysonar-app/json-schema/trysonar-app-stale-meta-schema.json",
  "title": "StaleMeta",
  "description": "Envelope `meta`, present only when the store was throttling and the endpoint answered from Sonar's stored copy instead of failing (apps/lookup, apps/search, apps/reviews, keywords/suggestions). Live answers carry no `meta`. A stored copy is billed like any 200.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trysonar-app-openapi.json#/components/schemas/StaleMeta",
  "type": "object",
  "required": [
    "stale",
    "stale_as_of",
    "partial",
    "retry_after_seconds",
    "note"
  ],
  "properties": {
    "stale": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "stale_as_of": {
      "type": [
        "string",
        "null"
      ],
      "description": "When the stored copy was captured: ISO 8601 timestamp or YYYY-MM-DD date; null when unknown."
    },
    "partial": {
      "type": "boolean",
      "description": "The copy holds less than a live call would: fewer results or fields (stored search results stop at the top 10, name/developer/icon only), or a different order (stored suggestions are ranked by popularity)."
    },
    "stale_country": {
      "type": [
        "string",
        "null"
      ],
      "description": "App lookup only: the storefront the stored copy came from, when it differs from the request."
    },
    "retry_after_seconds": {
      "type": "integer",
      "description": "When live data is expected again."
    },
    "note": {
      "type": "string",
      "description": "One sentence explaining what was served — safe to show to a user."
    }
  }
}