From cec495cc5f1083a43330a56b65d4eba67d376dbf Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 18 Apr 2023 01:18:05 +1000 Subject: Enforce theme_colors to be ints --- src/util/schemas/MemberChangeProfileSchema.ts | 5 ++--- src/util/schemas/UserProfileModifySchema.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/util/schemas/MemberChangeProfileSchema.ts b/src/util/schemas/MemberChangeProfileSchema.ts index 06505ab9..d2d1481d 100644 --- a/src/util/schemas/MemberChangeProfileSchema.ts +++ b/src/util/schemas/MemberChangeProfileSchema.ts @@ -22,8 +22,7 @@ export interface MemberChangeProfileSchema { bio?: string; pronouns?: string; /** - * @minItems 2 - * @maxItems 2 + * @items.type integer */ - theme_colors?: number[]; // puyo: changed from [number, number] because it breaks openapi + theme_colors?: [number, number]; } diff --git a/src/util/schemas/UserProfileModifySchema.ts b/src/util/schemas/UserProfileModifySchema.ts index 6f6777dd..3dea257a 100644 --- a/src/util/schemas/UserProfileModifySchema.ts +++ b/src/util/schemas/UserProfileModifySchema.ts @@ -22,8 +22,7 @@ export interface UserProfileModifySchema { banner?: string | null; pronouns?: string; /** - * @minItems 2 - * @maxItems 2 + * @items.type integer */ - theme_colors?: number[]; // puyo: changed from [number, number] because it breaks openapi + theme_colors?: [number, number]; } -- cgit 1.4.1