summaryrefslogtreecommitdiffstats
path: root/openapi/openapi.json
diff options
context:
space:
mode:
Diffstat (limited to 'openapi/openapi.json')
-rw-r--r--openapi/openapi.json16
1 files changed, 14 insertions, 2 deletions
diff --git a/openapi/openapi.json b/openapi/openapi.json
index ee61fde..5168fbc 100644
--- a/openapi/openapi.json
+++ b/openapi/openapi.json
@@ -100,7 +100,7 @@
}
}
},
- "PostListPost": {
+ "SomePostInfo": {
"type": "object",
"required": ["id", "title", "created", "community", "score"],
"properties": {
@@ -134,6 +134,18 @@
"your_vote": {"$ref": "#/components/schemas/YourVote"}
}
},
+ "PostListPost": {
+ "allOf": [
+ {"$ref": "#/components/schemas/SomePostInfo"},
+ {
+ "type": "object",
+ "required": ["replies_count_total"],
+ "properties": {
+ "replies_count_total": {"type": "integer"}
+ }
+ }
+ ]
+ },
"PostCommentInfo": {
"type": "object",
"required": ["id", "content_text", "content_html", "author", "created", "deleted", "replies", "has_replies", "attachments", "local"],
@@ -1140,7 +1152,7 @@
"content": {
"application/json": {
"schema": {
- "allOf": [{"$ref": "#/components/schemas/PostListPost"}],
+ "allOf": [{"$ref": "#/components/schemas/SomePostInfo"}],
"type": "object",
"required": ["approved", "local", "replies"],
"properties": {