{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revuo-ai/json-schema/revuo-ai-create-review-request-schema.json",
  "title": "CreateReviewRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revuo-ai-openapi.json#/components/schemas/CreateReviewRequest",
  "required": [
    "body",
    "productId",
    "rating",
    "title"
  ],
  "type": "object",
  "properties": {
    "productId": {
      "type": [
        "string",
        "null"
      ]
    },
    "rating": {
      "type": "integer",
      "format": "int32"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "body": {
      "type": [
        "string",
        "null"
      ]
    },
    "pros": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "cons": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "useCase": {
      "type": [
        "string",
        "null"
      ]
    },
    "companySize": {
      "$ref": "#/$defs/CompanySize"
    },
    "pricingPlanName": {
      "type": [
        "string",
        "null"
      ]
    },
    "pricingAmount": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "pricingBillingCycle": {
      "$ref": "#/$defs/BillingCycle"
    },
    "pricingUnitCount": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "pricingUnitLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "pricingCurrency": {
      "type": [
        "string",
        "null"
      ]
    },
    "pricingNotes": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "BillingCycle": {
      "enum": [
        "monthly",
        "yearly",
        "oneTime",
        "usage"
      ],
      "type": "string"
    },
    "CompanySize": {
      "enum": [
        "solo",
        "small",
        "medium",
        "enterprise"
      ],
      "type": "string"
    }
  }
}