Enforce theme_colors to be ints
This commit is contained in:
parent
b438f2b071
commit
cec495cc5f
@ -4984,12 +4984,17 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"theme_colors": {
|
"theme_colors": {
|
||||||
"minItems": 2,
|
"items": [
|
||||||
"maxItems": 2,
|
{
|
||||||
"type": "array",
|
"type": "integer"
|
||||||
"items": {
|
},
|
||||||
|
{
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 2,
|
||||||
|
"maxItems": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -5764,12 +5769,17 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"theme_colors": {
|
"theme_colors": {
|
||||||
"minItems": 2,
|
"items": [
|
||||||
"maxItems": 2,
|
{
|
||||||
"type": "array",
|
"type": "integer"
|
||||||
"items": {
|
},
|
||||||
|
{
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 2,
|
||||||
|
"maxItems": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -79863,12 +79863,17 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"theme_colors": {
|
"theme_colors": {
|
||||||
"minItems": 2,
|
"items": [
|
||||||
"maxItems": 2,
|
{
|
||||||
"type": "array",
|
"type": "integer"
|
||||||
"items": {
|
},
|
||||||
|
{
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 2,
|
||||||
|
"maxItems": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
@ -180210,12 +180215,17 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"theme_colors": {
|
"theme_colors": {
|
||||||
"minItems": 2,
|
"items": [
|
||||||
"maxItems": 2,
|
{
|
||||||
"type": "array",
|
"type": "integer"
|
||||||
"items": {
|
},
|
||||||
|
{
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 2,
|
||||||
|
"maxItems": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -22,8 +22,7 @@ export interface MemberChangeProfileSchema {
|
|||||||
bio?: string;
|
bio?: string;
|
||||||
pronouns?: string;
|
pronouns?: string;
|
||||||
/**
|
/**
|
||||||
* @minItems 2
|
* @items.type integer
|
||||||
* @maxItems 2
|
|
||||||
*/
|
*/
|
||||||
theme_colors?: number[]; // puyo: changed from [number, number] because it breaks openapi
|
theme_colors?: [number, number];
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,7 @@ export interface UserProfileModifySchema {
|
|||||||
banner?: string | null;
|
banner?: string | null;
|
||||||
pronouns?: string;
|
pronouns?: string;
|
||||||
/**
|
/**
|
||||||
* @minItems 2
|
* @items.type integer
|
||||||
* @maxItems 2
|
|
||||||
*/
|
*/
|
||||||
theme_colors?: number[]; // puyo: changed from [number, number] because it breaks openapi
|
theme_colors?: [number, number];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user