{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cookiy-ai/json-schema/cookiy-ai-v1-quant-survey-report-response-dto-schema.json",
  "title": "V1QuantSurveyReportResponseDto",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cookiy-ai-openapi.yml#/components/schemas/V1QuantSurveyReportResponseDto",
  "type": "object",
  "properties": {
    "survey_id": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "x-nestjs_zod-uses-3-point-1-syntax": true
    },
    "completion_status": {
      "type": "string",
      "enum": [
        "all",
        "complete",
        "incomplete"
      ],
      "x-nestjs_zod-uses-3-point-1-syntax": true
    },
    "response_row_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "x-nestjs_zod-uses-3-point-1-syntax": true
    },
    "completion_funnel": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "total_started": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "total_completed": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "completion_rate": {
              "type": "number"
            },
            "per_group": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "group_order": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "group_name": {
                    "type": "string"
                  },
                  "gid": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "reached_count": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "drop_off_count": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "drop_off_rate": {
                    "type": "number"
                  }
                },
                "required": [
                  "group_order",
                  "group_name",
                  "gid",
                  "reached_count",
                  "drop_off_count",
                  "drop_off_rate"
                ]
              }
            }
          },
          "required": [
            "total_started",
            "total_completed",
            "completion_rate",
            "per_group"
          ]
        },
        {
          "type": "null"
        }
      ],
      "x-nestjs_zod-uses-3-point-1-syntax": true,
      "x-nestjs_zod-empty-type": true
    },
    "question_summaries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question_code": {
            "type": "string"
          },
          "question_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "question_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "question_type_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "non_empty_value_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "distinct_value_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "distribution": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "label": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "count": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "percent": {
                  "type": "number"
                }
              },
              "required": [
                "code",
                "label",
                "count",
                "percent"
              ]
            }
          },
          "sample_values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "question_code",
          "question_text",
          "question_type",
          "question_type_label",
          "non_empty_value_count",
          "distinct_value_count",
          "sample_values"
        ]
      },
      "x-nestjs_zod-uses-3-point-1-syntax": true
    }
  },
  "required": [
    "survey_id",
    "completion_status",
    "response_row_count",
    "completion_funnel",
    "question_summaries"
  ]
}