Add optional RSVP field to guest schema

This commit introduces an optional `rsvp` field to the guest-related types and schemas. The field is nullable and references the `RSVPSchema`, allowing better handling of RSVP data in the application.
This commit is contained in:
2025-03-19 20:47:07 +01:00
parent 2a1f13a5f0
commit 42508af610
2 changed files with 11 additions and 0 deletions

View File

@@ -2427,6 +2427,16 @@ export const GuestReadSchema = {
type: "string",
title: "Invitation Code",
},
rsvp: {
anyOf: [
{
$ref: "#/components/schemas/RSVPSchema",
},
{
type: "null",
},
],
},
},
type: "object",
required: [

View File

@@ -370,6 +370,7 @@ export type GuestRead = {
actual_additional_guests: number;
is_blocked: boolean;
invitation_code: string;
rsvp?: RsvpSchema | null;
};
export type GuestStatus =