{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://cdn.jsdelivr.net/npm/@pie-element/inline-dropdown@11.0.6/dist/schemas/session.schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identifier of the session"
    },
    "element": {
      "type": "string",
      "description": "The element the session belongs to"
    },
    "value": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The value of the choice selected in each response area, keyed by the area's index"
    },
    "shuffledValues": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "Choice values of each response area in the order they were shuffled for this learner, keyed by the area's index, when choice order is not locked. An array is the format of older sessions; the controller replaces it."
    }
  },
  "definitions": {}
}
