Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2020-02-03 23:59:06 +0300
committerJonne Haß <me@jhass.eu>2020-02-04 20:54:53 +0300
commit04d0d6dccbee786a1e2b941d00ed8087fbf3c3f7 (patch)
tree07ec45dce2b8c556a358a8bd94cfc5564b9bcdc1 /lib
parent08d4f87a2dbe6f82e25b0062c594275ad17b60d1 (diff)
API: return mentioned_people for comments
Diffstat (limited to 'lib')
-rw-r--r--lib/schemas/api_v1.json24
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/schemas/api_v1.json b/lib/schemas/api_v1.json
index 84511bd4a..c4b7dbd9f 100644
--- a/lib/schemas/api_v1.json
+++ b/lib/schemas/api_v1.json
@@ -4,7 +4,8 @@
"oneOf": [
{"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/aspects"},
{"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/aspect"},
- {"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/comments_or_messages"},
+ {"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/comments"},
+ {"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/messages"},
{"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/users"},
{"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/conversations"},
{"$ref": "https://diaspora.software/api/v1/schema.json#/definitions/conversation"},
@@ -87,7 +88,26 @@
"additionalProperties": false
},
- "comments_or_messages": {
+ "comments": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "guid": { "$ref": "https://diaspora.software/api/v1/schema.json#/definitions/guid" },
+ "created_at": { "$ref": "https://diaspora.software/api/v1/schema.json#/definitions/timestamp" },
+ "author": { "$ref": "https://diaspora.software/api/v1/schema.json#/definitions/short_profile" },
+ "body": { "type": "string" },
+ "mentioned_people": {
+ "type": "array",
+ "items": { "$ref": "https://diaspora.software/api/v1/schema.json#/definitions/short_profile" }
+ }
+ },
+ "required": ["guid", "created_at", "author", "body"],
+ "additionalProperties": false
+ }
+ },
+
+ "messages": {
"type": "array",
"items": {
"type": "object",