{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sig-ai/json-schema/sig-ai-poll-create-schema.json",
  "title": "PollCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sig-ai-polls-api-openapi.yml#/components/schemas/PollCreate",
  "properties": {
    "question": {
      "type": "string",
      "maxLength": 1000,
      "title": "Question"
    },
    "options": {
      "items": {
        "$ref": "#/$defs/PollOptionCreate"
      },
      "type": "array",
      "maxItems": 50,
      "title": "Options"
    }
  },
  "type": "object",
  "required": [
    "question",
    "options"
  ],
  "$defs": {
    "PollOptionCreate": {
      "properties": {
        "label": {
          "type": "string",
          "maxLength": 500,
          "title": "Label"
        },
        "category": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        }
      },
      "type": "object",
      "required": [
        "label"
      ],
      "title": "PollOptionCreate"
    }
  }
}