diff options
author | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-10-22 17:43:25 -0600 |
---|---|---|
committer | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-10-22 17:43:25 -0600 |
commit | b4848a059aa2316e0691d89f581cb089024d718f (patch) | |
tree | 8ce849216dec1f6f469a90d6713ae6fedddebd42 | |
parent | 3a2ed68f1f622a5c39f8d32a85deaecd30f2cab8 (diff) |
Add comment attachments to API doc
-rw-r--r-- | openapi/openapi.json | 24 |
1 files 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" + } } } } |