From ae732c6a5c85e5237c8024f8c53be9fb7562ea87 Mon Sep 17 00:00:00 2001 From: raghotham Date: Fri, 5 Jul 2024 13:43:27 -0700 Subject: [PATCH] fixed attachment names --- openapi/spec.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/openapi/spec.yaml b/openapi/spec.yaml index 7c9c51b67..70c3529c2 100644 --- a/openapi/spec.yaml +++ b/openapi/spec.yaml @@ -512,29 +512,27 @@ components: attachments: type: array items: - $ref: '#/components/schemas/MediaAttachment' + $ref: '#/components/schemas/Attachment' metadata: type: object additionalProperties: true description: "Additional metadata as JSON." - MediaAttachment: + Attachment: type: object properties: type: - $ref: '#/components/schemas/MediaAttachmentType' + $ref: '#/components/schemas/AttachmentType' kind: - $ref: '#/components/schemas/MediaAttachmentKind' + $ref: '#/components/schemas/AttachmentKind' data: type: string - MediaAttachmentType: + AttachmentType: type: string enum: - image - - video - - audio - text - description: "Type of media attachment." - MediaAttachmentKind: + description: "Type of media attachment. Currently only support image and text." + AttachmentKind: type: string enum: - raw_bytes