From 6c81ef158e966a140aef80d8bde1b858b8d8a09c Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 12 Jun 2023 22:53:59 +0500 Subject: [PATCH] add schema for Url --- src/openapi/schemas/tweet.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 63e2908..5aea836 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -200,7 +200,25 @@ components: UserMention: type: object # todo Url: - type: object # todo + type: object + required: + - "url" + - "indices" + - "expanded_url" + - "display_url" + properties: + display_url: + type: string + expanded_url: + type: string + format: uri + url: + type: string + format: uri + indices: + type: array + items: + type: integer ExtendedEntities: required: