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:
@@ -2427,6 +2427,16 @@ export const GuestReadSchema = {
|
|||||||
type: "string",
|
type: "string",
|
||||||
title: "Invitation Code",
|
title: "Invitation Code",
|
||||||
},
|
},
|
||||||
|
rsvp: {
|
||||||
|
anyOf: [
|
||||||
|
{
|
||||||
|
$ref: "#/components/schemas/RSVPSchema",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "null",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
type: "object",
|
type: "object",
|
||||||
required: [
|
required: [
|
||||||
|
|||||||
@@ -370,6 +370,7 @@ export type GuestRead = {
|
|||||||
actual_additional_guests: number;
|
actual_additional_guests: number;
|
||||||
is_blocked: boolean;
|
is_blocked: boolean;
|
||||||
invitation_code: string;
|
invitation_code: string;
|
||||||
|
rsvp?: RsvpSchema | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GuestStatus =
|
export type GuestStatus =
|
||||||
|
|||||||
Reference in New Issue
Block a user