{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://modele-donnees-filiere-enquete.insee.fr/specs/2.3.0/RawResponse.json",
  "type": "object",
  "title": "RawResponse",
  "description": "Represents a raw response associated with the questionnaire",
  "properties": {
    "majorModelVersion": {
      "description": "Reference to the major version of the filiere model used",
      "type": "string",
      "enum": [
        "1",
        "2"
      ]
    },
    "interrogationId": {
      "description": "Unique identifier for the interrogation",
      "type": "string"
    },
    "technicalSurveyUnitId": {
      "description": "Unique technical id for the survey unit, this variable may not have a value yet",
      "type": "string"
    },
    "usualSurveyUnitId": {
      "description": "Usual survey unit id used by external system (business identifier)",
      "type": "string"
    },
    "partitionId": {
      "description": "Unique identifier for the partition, this variable may not have a value yet",
      "type": "string"
    },
    "partitionShortLabel": {
      "description": "Short label fot the partition",
      "type": "string",
      "nullable": true
    },
    "campaignId": {
      "description": "Unique identifier for the campaign, retained for backward compatibility",
      "type": "string",
      "deprecated": true
    },
    "collectionInstrumentId": {
      "description": "Unique id for the questionnaire model instrument",
      "type": "string"
    },
    "mode": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "title": "Mode",
      "description": "Collect modes",
      "type": "string",
      "enum": [
        "CATI",
        "CAPI",
        "CAWI",
        "PAPI"
      ]
    },
    "isCapturedIndirectly": {
      "description": "Indicates if questionnaire is captured indirectly",
      "type": "boolean"
    },
    "questionnaireState": {
      "description": "State information about the questionnaire ",
      "type": "string",
      "enum": [
        "STARTED",
        "FINISHED"
      ]
    },
    "validationDate": {
      "description": "Indicates the validation date of the questionnaire (null if partial)",
      "type": "string",
      "nullable": true,
      "format": "date-time",
      "x-field-extra-annotation": "@com.fasterxml.jackson.annotation.JsonFormat(shape = com.fasterxml.jackson.annotation.JsonFormat.Shape.STRING, timezone = \"UTC\")"
    },
    "data": {
      "description": "Data associated with the questionnaire (json lunatic format)",
      "type": "object"
    }
  },
  "required": [
    "interrogationId",
    "usualSurveyUnitId",
    "collectionInstrumentId",
    "partitionId",
    "mode",
    "isCapturedIndirectly",
    "questionnaireState",
    "data"
  ]
}