{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-review-list-schema.json",
  "title": "ReviewList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-reviews-api-openapi.yml#/components/schemas/ReviewList",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReviewObject"
      }
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether another page follows."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `starting_after` (or `cursor` for search) to get the next page."
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "next_cursor"
  ],
  "$defs": {
    "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"
      ]
    }
  }
}