pub.quizzy.question

quizzy.pub

Documentation

A quiz question with expected answers

main record

A quiz question with expected answers

Record Key tid Timestamp-based ID

Properties

correctAnswers array of array Optional

Correct answers. Array length defines how many answers are expected.

maxLength: 10 itemsminLength: 1 items
incorrectAnswers array of array Optional

Common incorrect answers to auto-mark as wrong. Array length should match correctAnswers.

maxLength: 10 items
locale string language Required

The locale/language of the question

media blob Optional

Optional image, video, or audio for the question

maxSize: 50.0 MB
text string Required

The question text

maxLength: 10000 bytesmaxGraphemes: 1000 graphemes
View raw schema
{
  "description": "A quiz question with expected answers",
  "key": "tid",
  "record": {
    "properties": {
      "correctAnswers": {
        "description": "Correct answers. Array length defines how many answers are expected.",
        "items": {
          "description": "List of automatically accepted answer strings (may be empty for manual marking)",
          "items": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "maxLength": 50,
          "type": "array"
        },
        "maxLength": 10,
        "minLength": 1,
        "type": "array"
      },
      "incorrectAnswers": {
        "description": "Common incorrect answers to auto-mark as wrong. Array length should match correctAnswers.",
        "items": {
          "description": "List of automatically rejected answer strings",
          "items": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "maxLength": 50,
          "type": "array"
        },
        "maxLength": 10,
        "type": "array"
      },
      "locale": {
        "description": "The locale/language of the question",
        "format": "language",
        "type": "string"
      },
      "media": {
        "accept": [
          "image/png",
          "image/jpeg",
          "image/gif",
          "image/webp",
          "video/mp4",
          "video/webm",
          "audio/mpeg",
          "audio/ogg",
          "audio/wav"
        ],
        "description": "Optional image, video, or audio for the question",
        "maxSize": 50000000,
        "type": "blob"
      },
      "text": {
        "description": "The question text",
        "maxGraphemes": 1000,
        "maxLength": 10000,
        "type": "string"
      }
    },
    "required": [
      "text",
      "locale"
    ],
    "type": "object"
  },
  "type": "record"
}

Lexicon Garden

@