From b4848a059aa2316e0691d89f581cb089024d718f Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Thu, 22 Oct 2020 17:43:25 -0600 Subject: Add comment attachments to API doc --- openapi/openapi.json | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/openapi/openapi.json b/openapi/openapi.json index 373a20d..1ac57ff 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -136,11 +136,21 @@ }, "PostCommentInfo": { "type": "object", - "required": ["id", "content_text", "content_html", "author", "created", "deleted", "replies", "has_replies"], + "required": ["id", "content_text", "content_html", "author", "created", "deleted", "replies", "has_replies", "attachments"], "properties": { "id": {"type": "integer"}, "content_text": {"type": "string", "nullable": true}, "content_html": {"type": "string", "nullable": true}, + "attachments": { + "type": "array", + "items": { + "type": "object", + "required": ["url"], + "properties": { + "url": {"type": "string"} + } + } + }, "author": { "$ref": "#/components/schemas/NullableMinimalUserInfo" }, @@ -300,7 +310,11 @@ "type": "object", "properties": { "content_text": {"type": "string"}, - "content_markdown": {"type": "string"} + "content_markdown": {"type": "string"}, + "attachment": { + "type": "string", + "description": "Must be a `local-media://` reference" + } } } } @@ -1173,7 +1187,11 @@ "type": "object", "properties": { "content_text": {"type": "string"}, - "content_markdown": {"type": "string"} + "content_markdown": {"type": "string"}, + "attachment": { + "type": "string", + "description": "Must be a `local-media://` reference" + } } } } -- cgit v1.2.3