aboutsummaryrefslogtreecommitdiffstats
path: root/core/openapi-full.json
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-08-14 09:29:30 +0200
committerprovokateurin <kate@provokateurin.de>2024-08-14 09:29:30 +0200
commite77d6c913d8243889d49c81ee7f5604f15f6cf9b (patch)
treebb81e09b46bd973e250408b59801ad1cbd0d50bf /core/openapi-full.json
parenta503125173ce438aa841a24a9108cb5c6bac27ac (diff)
downloadnextcloud-server-e77d6c913d8243889d49c81ee7f5604f15f6cf9b.tar.gz
nextcloud-server-e77d6c913d8243889d49c81ee7f5604f15f6cf9b.zip
fix(core): Limit valid avatar sizes
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'core/openapi-full.json')
-rw-r--r--core/openapi-full.json26
1 files changed, 22 insertions, 4 deletions
diff --git a/core/openapi-full.json b/core/openapi-full.json
index dbeb48dbe35..47cef87379b 100644
--- a/core/openapi-full.json
+++ b/core/openapi-full.json
@@ -7567,7 +7567,11 @@
"required": true,
"schema": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "enum": [
+ 64,
+ 512
+ ]
}
}
],
@@ -7674,7 +7678,11 @@
"required": true,
"schema": {
"type": "integer",
- "format": "int64"
+ "format": "int64",
+ "enum": [
+ 64,
+ 512
+ ]
}
}
],
@@ -7914,7 +7922,12 @@
"description": "The desired avatar size, e.g. 64 for 64x64px",
"required": true,
"schema": {
- "type": "string"
+ "type": "integer",
+ "format": "int64",
+ "enum": [
+ 64,
+ 512
+ ]
}
}
],
@@ -7995,7 +8008,12 @@
"description": "The desired avatar size, e.g. 64 for 64x64px",
"required": true,
"schema": {
- "type": "string"
+ "type": "integer",
+ "format": "int64",
+ "enum": [
+ 64,
+ 512
+ ]
}
}
],