summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-09-23 14:57:38 +0200
committerRory& <root@rory.gay>2026-09-23 14:57:38 +0200
commit450b65fb12e20dbc1aa27708e8ef299ea70893cc (patch)
treed9d25b7bfa429db1a7784c2377e1e2b321589617
parentSome more avatar decorations work (diff)
downloadserver-ts-450b65fb12e20dbc1aa27708e8ef299ea70893cc.tar.xz
Fix type annotations for UserProfileModifySchema
-rw-r--r--assets/openapi.json21
-rw-r--r--assets/schemas.json21
-rw-r--r--src/schemas/api/users/User.ts1
3 files changed, 5 insertions, 38 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index bb0f22b8a..623ffd8d8 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -669,27 +669,10 @@ "type": "integer" }, "theme_colors": { + "type": "array", "items": { "type": "integer" - }, - "anyOf": [ - { - "type": "array", - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "minItems": 2, - "maxItems": 2 - }, - { - "type": "null" - } - ] + } }, "popout_animation_particle_type": { "type": "string", diff --git a/assets/schemas.json b/assets/schemas.json
index 7afc0e440..a4bfe82a5 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -694,27 +694,10 @@ "type": "integer" }, "theme_colors": { + "type": "array", "items": { "type": "integer" - }, - "anyOf": [ - { - "type": "array", - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "minItems": 2, - "maxItems": 2 - }, - { - "type": "null" - } - ] + } }, "popout_animation_particle_type": { "type": [ diff --git a/src/schemas/api/users/User.ts b/src/schemas/api/users/User.ts
index 426363271..abc334be6 100644 --- a/src/schemas/api/users/User.ts +++ b/src/schemas/api/users/User.ts
@@ -227,6 +227,7 @@ export class UserProfileModifySchema { */ accent_color?: number | null; /** + * @type array * @items.type integer */ theme_colors?: [number, number] | null;