{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repuso-com/json-schema/repuso-com-review-create-schema.json",
  "title": "ReviewCreate",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repuso-com-openapi.json#/components/schemas/ReviewCreate",
  "type": "object",
  "required": [
    "from_name",
    "text",
    "posted_on"
  ],
  "properties": {
    "from_name": {
      "type": "string"
    },
    "text": {
      "type": "string",
      "description": "Review text as plain text - HTML markup is stripped and line breaks are real newlines."
    },
    "posted_on": {
      "type": "string",
      "description": "ISO date or common `d/m/Y`-style formats."
    },
    "rating_value": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5
    },
    "source": {
      "type": "string",
      "description": "Name of one of your custom sources."
    },
    "from_image": {
      "type": "string",
      "format": "uri"
    },
    "post_url": {
      "type": "string",
      "format": "uri"
    },
    "photo": {
      "type": "string",
      "description": "Image URLs, comma separated."
    },
    "video": {
      "type": "string",
      "description": "YouTube / Vimeo / direct video URLs, comma separated."
    }
  }
}