{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Your answer to an event in a shared calendar at spaces.computer, stored in your own repo inside the calendar space. Everyone in the calendar can read it. Record key: the event writer and the event's record key, so there is one answer per person per event. Changing the answer rewrites it.",
      "key": "any",
      "record": {
        "properties": {
          "answer": {
            "description": "going, maybe, or no.",
            "knownValues": [
              "going",
              "maybe",
              "no"
            ],
            "type": "string"
          },
          "createdAt": {
            "description": "When you first answered.",
            "format": "datetime",
            "type": "string"
          },
          "event": {
            "description": "The event answered: its record's address inside the calendar space, at:space/{authority}/computer.spaces.calendar/{key}/{writer}/computer.spaces.event/{rkey}.",
            "maxLength": 2048,
            "type": "string"
          },
          "note": {
            "description": "Anything to add, e.g. what you are bringing.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "updatedAt": {
            "description": "When you last changed your answer.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "event",
          "answer",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.spaces.rsvp",
  "lexicon": 1
}
