From b661d8e94a0ce3e2b78448c3a315d4818952001f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Mon, 17 Apr 2023 22:45:56 +0900 Subject: [PATCH] update time pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- openapi/openapi-3.0.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/openapi/openapi-3.0.yaml b/openapi/openapi-3.0.yaml index 61bb88b..ff2363a 100644 --- a/openapi/openapi-3.0.yaml +++ b/openapi/openapi-3.0.yaml @@ -496,6 +496,12 @@ paths: components: schemas: + # ================= General ================= + + TwitterTime: + type: string # Thu Apr 06 13:23:34 +0000 2023 + pattern: "^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]) ([+-][0-9]{4}) ([0-9]{4})$" + # ================= TypeName ================= TypeName: type: string @@ -867,6 +873,7 @@ components: - "bookmark_count" - "bookmarked" - "conversation_id_str" + - "created_at" - "display_text_range" - "entities" - "favorite_count" @@ -886,7 +893,7 @@ components: bookmarked: type: boolean created_at: - type: string # Thu Apr 06 13:23:34 +0000 2023 + $ref: "#/components/schemas/TwitterTime" conversation_id_str: type: string pattern: "^[0-9]+$" @@ -1049,7 +1056,7 @@ components: type: boolean default: false created_at: - type: string # Wed Jul 08 14:05:58 +0000 2009 + $ref: "#/components/schemas/TwitterTime" default_profile: type: boolean default: false