{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-product-highlight-sanitizer-schema.json",
  "title": "ProductHighlightSanitizer",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hint-health-partnerproducthighlight-api-openapi.yml#/components/schemas/ProductHighlightSanitizer",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Short title (1–4 words) shown above the description."
    },
    "description": {
      "type": "string",
      "description": "One-line description of the highlight."
    },
    "image": {
      "type": "string",
      "description": "Image as a base64 data URI (\"data:image/png;base64,...\"). **Note: the field name differs across listing sections.** Highlights use `image`; overview images (`ProductOverviewSanitizer.ImageSanitizer`) use `url`. Both take the same data-URI payload — only the key differs."
    },
    "position": {
      "type": "integer",
      "format": "int32",
      "description": "Display order. Optional — defaults to the next position via `acts_as_list`."
    }
  }
}