{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/movementors-com/json-schema/movementors-com-review-schema.json",
  "title": "Review",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/movementors-com-openapi.json#/components/schemas/Review",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "rating": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "text": {
      "type": [
        "string",
        "null"
      ]
    },
    "teacherResponse": {
      "type": [
        "string",
        "null"
      ]
    },
    "responseAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "reviewer": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "image": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "name",
        "image"
      ]
    },
    "class": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "date": {
          "type": "string"
        }
      },
      "required": [
        "title",
        "date"
      ]
    }
  },
  "required": [
    "id",
    "rating",
    "text",
    "teacherResponse",
    "responseAt",
    "createdAt",
    "reviewer",
    "class"
  ]
}