aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/sharebymail/openapi.json104
-rw-r--r--apps/user_status/openapi.json5
2 files changed, 60 insertions, 49 deletions
diff --git a/apps/sharebymail/openapi.json b/apps/sharebymail/openapi.json
index 3c98f9e43ac..5b608d42299 100644
--- a/apps/sharebymail/openapi.json
+++ b/apps/sharebymail/openapi.json
@@ -21,79 +21,87 @@
},
"schemas": {
"Capabilities": {
- "type": "object",
- "required": [
- "files_sharing"
- ],
- "properties": {
- "files_sharing": {
+ "oneOf": [
+ {
"type": "object",
"required": [
- "sharebymail"
+ "files_sharing"
],
"properties": {
- "sharebymail": {
+ "files_sharing": {
"type": "object",
"required": [
- "enabled",
- "send_password_by_mail",
- "upload_files_drop",
- "password",
- "expire_date"
+ "sharebymail"
],
"properties": {
- "enabled": {
- "type": "boolean"
- },
- "send_password_by_mail": {
- "type": "boolean"
- },
- "upload_files_drop": {
- "type": "object",
- "required": [
- "enabled"
- ],
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "password": {
+ "sharebymail": {
"type": "object",
"required": [
"enabled",
- "enforced"
+ "send_password_by_mail",
+ "upload_files_drop",
+ "password",
+ "expire_date"
],
"properties": {
"enabled": {
"type": "boolean"
},
- "enforced": {
- "type": "boolean"
- }
- }
- },
- "expire_date": {
- "type": "object",
- "required": [
- "enabled",
- "enforced"
- ],
- "properties": {
- "enabled": {
+ "send_password_by_mail": {
"type": "boolean"
},
- "enforced": {
- "type": "boolean"
+ "upload_files_drop": {
+ "type": "object",
+ "required": [
+ "enabled"
+ ],
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ }
+ },
+ "password": {
+ "type": "object",
+ "required": [
+ "enabled",
+ "enforced"
+ ],
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "enforced": {
+ "type": "boolean"
+ }
+ }
+ },
+ "expire_date": {
+ "type": "object",
+ "required": [
+ "enabled",
+ "enforced"
+ ],
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "enforced": {
+ "type": "boolean"
+ }
+ }
}
}
}
}
}
}
+ },
+ {
+ "type": "array",
+ "maxLength": 0
}
- }
+ ]
}
}
},
diff --git a/apps/user_status/openapi.json b/apps/user_status/openapi.json
index 0a62ca7d062..0688f644a43 100644
--- a/apps/user_status/openapi.json
+++ b/apps/user_status/openapi.json
@@ -820,7 +820,10 @@
{
"$ref": "#/components/schemas/Private"
},
- {}
+ {
+ "type": "array",
+ "maxLength": 0
+ }
]
}
}