{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-guest-rsvp-input-schema.json",
  "title": "GuestRsvpInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-rsvp-api-openapi.yml#/components/schemas/GuestRsvpInput",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "attending",
        "maybe",
        "declined"
      ]
    },
    "answers": {
      "type": "object",
      "additionalProperties": true
    },
    "dietary_restrictions": {
      "type": [
        "string",
        "null"
      ]
    },
    "dietary_notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "event_responses": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "event_id"
        ],
        "properties": {
          "event_id": {
            "$ref": "#/$defs/EventId"
          },
          "attending": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "option_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "meal_choice_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "meal_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  },
  "$defs": {
    "EventId": {
      "type": "string",
      "pattern": "^evt_.+$"
    }
  }
}