{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onclarity-com/json-schema/onclarity-com-survey-response-event-schema.json",
  "title": "SurveyResponseEvent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onclarity-com-closed-loop-api-openapi.yml#/components/schemas/SurveyResponseEvent",
  "properties": {
    "event": {
      "type": "string",
      "title": "Event"
    },
    "projectId": {
      "type": "string",
      "title": "Projectid"
    },
    "surveyId": {
      "type": "string",
      "title": "Surveyid"
    },
    "response": {
      "additionalProperties": true,
      "type": "object",
      "title": "Response"
    },
    "signals": {
      "$ref": "#/$defs/ResponseSignals"
    }
  },
  "type": "object",
  "required": [
    "event",
    "projectId",
    "surveyId",
    "response",
    "signals"
  ],
  "$defs": {
    "DedupSignal": {
      "properties": {
        "fingerprint": {
          "type": "string",
          "title": "Fingerprint"
        },
        "ip": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ip"
        }
      },
      "type": "object",
      "required": [
        "fingerprint"
      ],
      "title": "DedupSignal"
    },
    "ResponseSignals": {
      "properties": {
        "score": {
          "$ref": "#/$defs/ScoreSignal"
        },
        "dedup": {
          "$ref": "#/$defs/DedupSignal"
        }
      },
      "type": "object",
      "required": [
        "score",
        "dedup"
      ],
      "title": "ResponseSignals"
    },
    "ScoreSignal": {
      "properties": {
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        },
        "bucket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bucket"
        },
        "isLowScore": {
          "type": "boolean",
          "title": "Islowscore"
        }
      },
      "type": "object",
      "required": [
        "isLowScore"
      ],
      "title": "ScoreSignal"
    }
  }
}