aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/openapi.json
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-06-05 08:29:29 +0200
committerjld3103 <jld3103yt@gmail.com>2023-06-05 08:30:12 +0200
commitc43572223603cf895d8831d2f880a8b8f56ab39e (patch)
treefbfa37b43f0aeb9cc6feda2ba43f8ddde3849928 /apps/theming/openapi.json
parent7fd9b62fe384ea741729fbefbde79ce5e52e9f8d (diff)
downloadnextcloud-server-c43572223603cf895d8831d2f880a8b8f56ab39e.tar.gz
nextcloud-server-c43572223603cf895d8831d2f880a8b8f56ab39e.zip
openapi: Fix wrapping OCS responses that are not DataResponse
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/theming/openapi.json')
-rw-r--r--apps/theming/openapi.json230
1 files changed, 15 insertions, 215 deletions
diff --git a/apps/theming/openapi.json b/apps/theming/openapi.json
index 298ec5722d5..9ba6919161f 100644
--- a/apps/theming/openapi.json
+++ b/apps/theming/openapi.json
@@ -654,28 +654,8 @@
"content": {
"*/*": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "string",
- "format": "binary"
- }
- }
- }
- }
+ "type": "string",
+ "format": "binary"
}
}
}
@@ -685,27 +665,7 @@
"content": {
"text/html": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "string"
- }
- }
- }
- }
+ "type": "string"
}
}
}
@@ -772,27 +732,7 @@
"content": {
"application/json": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "$ref": "#/components/schemas/Background"
- }
- }
- }
- }
+ "$ref": "#/components/schemas/Background"
}
}
}
@@ -804,31 +744,11 @@
"schema": {
"type": "object",
"required": [
- "ocs"
+ "error"
],
"properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "object",
- "required": [
- "error"
- ],
- "properties": {
- "error": {
- "type": "string"
- }
- }
- }
- }
+ "error": {
+ "type": "string"
}
}
}
@@ -842,31 +762,11 @@
"schema": {
"type": "object",
"required": [
- "ocs"
+ "error"
],
"properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "object",
- "required": [
- "error"
- ],
- "properties": {
- "error": {
- "type": "string"
- }
- }
- }
- }
+ "error": {
+ "type": "string"
}
}
}
@@ -908,27 +808,7 @@
"content": {
"application/json": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "$ref": "#/components/schemas/Background"
- }
- }
- }
- }
+ "$ref": "#/components/schemas/Background"
}
}
}
@@ -1008,27 +888,7 @@
"content": {
"text/plain": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "string"
- }
- }
- }
- }
+ "type": "string"
}
}
}
@@ -1038,27 +898,7 @@
"content": {
"text/plain": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "string"
- }
- }
- }
- }
+ "type": "string"
}
}
}
@@ -1138,27 +978,7 @@
"content": {
"text/plain": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "string"
- }
- }
- }
- }
+ "type": "string"
}
}
}
@@ -1168,27 +988,7 @@
"content": {
"text/plain": {
"schema": {
- "type": "object",
- "required": [
- "ocs"
- ],
- "properties": {
- "ocs": {
- "type": "object",
- "required": [
- "meta",
- "data"
- ],
- "properties": {
- "meta": {
- "$ref": "#/components/schemas/OCSMeta"
- },
- "data": {
- "type": "string"
- }
- }
- }
- }
+ "type": "string"
}
}
}