{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-review-object-schema.json",
  "title": "ReviewObject",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-reviews-api-openapi.yml#/components/schemas/ReviewObject",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "review"
      ]
    },
    "id": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "author_role": {
      "type": "string",
      "enum": [
        "buyer",
        "seller"
      ]
    },
    "author": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "visible": {
      "type": "boolean",
      "description": "False until both parties have reviewed or the review window has closed. Rating and body are withheld until then."
    },
    "rating": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 1,
      "maximum": 5
    },
    "body": {
      "type": [
        "string",
        "null"
      ]
    },
    "removed": {
      "type": "boolean",
      "description": "Removed by moderation. A removed review stops counting toward reputation."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "order",
    "author_role",
    "author",
    "subject",
    "visible",
    "rating",
    "body",
    "removed",
    "created_at"
  ]
}