Enforce theme_colors to be ints

This commit is contained in:
Madeline 2023-04-18 01:18:05 +10:00
parent b438f2b071
commit cec495cc5f
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
4 changed files with 44 additions and 26 deletions

View File

@ -4984,12 +4984,17 @@
"type": "string"
},
"theme_colors": {
"minItems": 2,
"maxItems": 2,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"type": "array",
"items": {
"type": "integer"
}
"minItems": 2,
"maxItems": 2
}
}
},
@ -5764,12 +5769,17 @@
"type": "string"
},
"theme_colors": {
"minItems": 2,
"maxItems": 2,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"type": "array",
"items": {
"type": "integer"
}
"minItems": 2,
"maxItems": 2
}
}
},

View File

@ -79863,12 +79863,17 @@
"type": "string"
},
"theme_colors": {
"minItems": 2,
"maxItems": 2,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"type": "array",
"items": {
"type": "integer"
}
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false,
@ -180210,12 +180215,17 @@
"type": "string"
},
"theme_colors": {
"minItems": 2,
"maxItems": 2,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"type": "array",
"items": {
"type": "integer"
}
"minItems": 2,
"maxItems": 2
}
},
"additionalProperties": false,

View File

@ -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];
}

View File

@ -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];
}