{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-product-testimonial-sanitizer-schema.json",
  "title": "ProductTestimonialSanitizer",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hint-health-testimonial-api-openapi.yml#/components/schemas/ProductTestimonialSanitizer",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Body of the testimonial."
    },
    "author": {
      "type": "string",
      "description": "Display name of the person being quoted."
    },
    "author_title": {
      "type": "string",
      "description": "Role + organization shown under the author name (e.g. \"Office Manager, Mesa Family Practice\")."
    },
    "author_image": {
      "type": "string",
      "description": "Author headshot as a base64 data URI (e.g. `\"data:image/jpeg;base64,...\"`)."
    },
    "position": {
      "type": "integer",
      "format": "int32",
      "description": "Display order. Optional — defaults to the next position via `acts_as_list`."
    }
  },
  "required": [
    "text",
    "author",
    "author_title"
  ]
}