{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/culture-amp/json-schema/culture-amp-survey-factors-response-schema.json",
  "title": "SurveyFactorsResponse",
  "description": "container object for multiple Factors",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/culture-amp-surveys-api-openapi.yml#/components/schemas/SurveyFactorsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SurveyFactor"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationV2"
    }
  },
  "$defs": {
    "PaginationV2": {
      "title": "Pagination",
      "type": "object",
      "properties": {
        "nextPath": {
          "type": "string",
          "description": "the relative url for the next page of data"
        }
      }
    },
    "SurveyFactor": {
      "title": "SurveyFactor",
      "type": "object",
      "description": "A Factor is an aspect that one seeks to measure in a Survey",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for this reporting factor"
        },
        "name": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Text name set by the survey admin for this reporting factor"
        },
        "type": {
          "type": "string",
          "description": "Defines the type of the reporting factor and how it will be used in survey reporting"
        },
        "code": {
          "type": "string",
          "description": "Auto-generated code for the reporting factor"
        },
        "indexFactor": {
          "type": "boolean",
          "description": "Whether the reporting factor is used as an index or not"
        },
        "customFactor": {
          "type": "boolean",
          "description": "Whether the reporting factor was created via the reporting factors page or not"
        },
        "shortDescription": {
          "type": "string",
          "description": "Short text label which describes the reporting factor"
        },
        "longDescription": {
          "type": "string",
          "description": "Long text label which describes the reporting factor"
        },
        "status": {
          "type": "string",
          "description": "Whether this reporting factor is active or deleted"
        },
        "order": {
          "type": "integer",
          "description": "Order of the factor as configured in the survey",
          "format": "int32"
        },
        "createdAt": {
          "type": "string",
          "description": "When this factor was created",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "When the factor was last updated",
          "format": "date-time"
        }
      }
    }
  }
}