feat(openapi): validate Dart SDK generation, make the spec self-sufficient (#1181)

Signed-off-by: Hampus Kraft <[email protected]>
This commit is contained in:
Hampus
2026-06-26 07:48:51 +02:00
committed by GitHub
parent 097e10d651
commit 6e87f6e3d1
7 changed files with 1248 additions and 1146 deletions
@@ -58,7 +58,7 @@ const ReactionEmojiResponse = z.object({
export const MessageReactionResponse = z.object({
emoji: ReactionEmojiResponse.describe('The emoji used for the reaction'),
count: Int32Type.describe('The total number of times this reaction has been used'),
me: z.literal(true).nullish().describe('Whether the current user has reacted with this emoji'),
me: z.boolean().nullish().describe('Whether the current user has reacted with this emoji'),
});
export type MessageReactionResponse = z.infer<typeof MessageReactionResponse>;
@@ -258,8 +258,8 @@ export type SelfServeRefundEligibilityResponse = z.infer<typeof SelfServeRefundE
const PremiumBillingState = z.object({
stripe_customer_id: z.string().nullable(),
current_subscription_price: CurrentSubscriptionPriceResponse,
pending_subscription_change: PendingSubscriptionChangeResponse,
current_subscription_price: CurrentSubscriptionPriceResponse.nullable(),
pending_subscription_change: PendingSubscriptionChangeResponse.nullable(),
subscription: PremiumBillingSubscriptionResponse.nullable(),
invoices: z.array(PremiumBillingInvoiceResponse),
invoices_has_more: z.boolean(),