mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
feat(openapi): validate Dart SDK generation, make the spec self-sufficient (#1181)
Signed-off-by: Hampus Kraft <[email protected]>
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user