{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 6000,
      "description": "The user's dream narrative, supplied with their permission."
    },
    "recurrence": {
      "description": "Optional recurrence hint supplied by the user; omit rather than infer it.",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string",
          "maxLength": 80
        }
      ]
    }
  },
  "required": [
    "text"
  ]
}