{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rightmoney-com/json-schema/rightmoney-com-review-response-schema.json",
  "title": "ReviewResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rightmoney-com-openapi.json#/components/schemas/ReviewResponse",
  "type": "object",
  "required": [
    "userId",
    "score",
    "issueCount",
    "issues",
    "nextAction"
  ],
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid"
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "Data quality score"
    },
    "issueCount": {
      "type": "integer"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "low_confidence",
              "likely_wrong",
              "missing_income",
              "ambiguous_transfer",
              "bill_frequency",
              "income_validation",
              "ignore_detection"
            ]
          },
          "merchant": {
            "type": [
              "string",
              "null"
            ]
          },
          "currentBucket": {
            "type": [
              "string",
              "null"
            ]
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ]
          },
          "suggestedBucket": {
            "type": [
              "string",
              "null"
            ]
          },
          "question": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "priority": {
            "type": "integer"
          }
        }
      }
    },
    "nextAction": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "improve",
            "upgrade",
            "view"
          ]
        },
        "label": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}